org.apache.ftpserver.filesystem
Class NativeFileSystemView

java.lang.Object
  extended by org.apache.ftpserver.filesystem.NativeFileSystemView
All Implemented Interfaces:
FileSystemView

public class NativeFileSystemView
extends java.lang.Object
implements FileSystemView

File system view based on native file system. Here the root directory will be user virtual root (/).


Constructor Summary
protected NativeFileSystemView(User user)
          Constructor - set the user object.
protected NativeFileSystemView(User user, boolean caseInsensitive)
          Constructor - set the user object.
 
Method Summary
 boolean changeDirectory(java.lang.String dir)
          Change directory.
 void dispose()
          Dispose file system view - does nothing.
 FileObject getCurrentDirectory()
          Get the current directory.
 FileObject getFileObject(java.lang.String file)
          Get file object.
 FileObject getHomeDirectory()
          Get the user home directory.
 boolean isRandomAccessible()
          Is the file content random accessible?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeFileSystemView

protected NativeFileSystemView(User user)
                        throws FtpException
Constructor - set the user object.

Throws:
FtpException

NativeFileSystemView

protected NativeFileSystemView(User user,
                               boolean caseInsensitive)
                        throws FtpException
Constructor - set the user object.

Throws:
FtpException
Method Detail

getHomeDirectory

public FileObject getHomeDirectory()
Get the user home directory. It would be the file system root for the user.

Specified by:
getHomeDirectory in interface FileSystemView

getCurrentDirectory

public FileObject getCurrentDirectory()
Get the current directory.

Specified by:
getCurrentDirectory in interface FileSystemView

getFileObject

public FileObject getFileObject(java.lang.String file)
Get file object.

Specified by:
getFileObject in interface FileSystemView

changeDirectory

public boolean changeDirectory(java.lang.String dir)
Change directory.

Specified by:
changeDirectory in interface FileSystemView

isRandomAccessible

public boolean isRandomAccessible()
Is the file content random accessible?

Specified by:
isRandomAccessible in interface FileSystemView

dispose

public void dispose()
Dispose file system view - does nothing.

Specified by:
dispose in interface FileSystemView


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