org.apache.ftpserver.ftplet
Interface FileSystemView


public interface FileSystemView

This is an abstraction over the user file system view.


Method Summary
 boolean changeDirectory(java.lang.String dir)
          Change directory.
 void dispose()
          Dispose file system view.
 FileObject getCurrentDirectory()
          Get user current directory.
 FileObject getFileObject(java.lang.String file)
          Get file object.
 FileObject getHomeDirectory()
          Get the user home directory.
 boolean isRandomAccessible()
          Does the file system support random file access?
 

Method Detail

getHomeDirectory

FileObject getHomeDirectory()
                            throws FtpException
Get the user home directory.

Throws:
FtpException

getCurrentDirectory

FileObject getCurrentDirectory()
                               throws FtpException
Get user current directory.

Throws:
FtpException

changeDirectory

boolean changeDirectory(java.lang.String dir)
                        throws FtpException
Change directory.

Throws:
FtpException

getFileObject

FileObject getFileObject(java.lang.String file)
                         throws FtpException
Get file object.

Throws:
FtpException

isRandomAccessible

boolean isRandomAccessible()
                           throws FtpException
Does the file system support random file access?

Throws:
FtpException

dispose

void dispose()
Dispose file system view.



Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.