JSCAPE MFT Server

com.jscape.inet.vfs
Class VirtualLocalFileDescriptor

java.lang.Object
  extended by com.jscape.inet.vfs.VirtualFileDescriptor<VirtualLocalFileDescriptor.Handler>
      extended by com.jscape.inet.vfs.VirtualLocalFileDescriptor

public final class VirtualLocalFileDescriptor
extends VirtualFileDescriptor<VirtualLocalFileDescriptor.Handler>

Contains information about local file.

Author:
Alex

Nested Class Summary
static interface VirtualLocalFileDescriptor.Handler
           
 
Nested classes/interfaces inherited from class com.jscape.inet.vfs.VirtualFileDescriptor
VirtualFileDescriptor.HandlerBase
 
Constructor Summary
VirtualLocalFileDescriptor()
          Creates a new descriptor instance.
VirtualLocalFileDescriptor(java.lang.String path, AccessPermissions accessPermissions, boolean secured, boolean denied, boolean indexable, java.lang.String realPath, boolean createIfNotExists)
           
VirtualLocalFileDescriptor(java.lang.String path, AccessPermissions permissions, java.lang.String realPath, boolean createIfNotExists)
          Creates a new descriptor instance.
VirtualLocalFileDescriptor(VirtualLocalFileDescriptor that)
          Copy constructor.
 
Method Summary
 void accept(VirtualLocalFileDescriptor.Handler handler)
           
 VirtualLocalFileDescriptor copy()
           
 boolean equals(java.lang.Object o)
           
 boolean getCreateIfNotExists()
          Gets whether directory should be created upon access if it does not exist.
 java.lang.String getName()
          Returns resource name.
 java.lang.String getRealPath()
          Returns real file path in local system.
 int hashCode()
           
 void setCreateIfNotExists(boolean value)
          Sets whether directory should be created upon access if it does not exist.
 void setRealPath(java.lang.String realPath)
          Sets real file path.
 java.lang.String toString()
           
 
Methods inherited from class com.jscape.inet.vfs.VirtualFileDescriptor
getAccessPermissions, getPath, isDenied, isIndexable, isSecured, setAccessPermissions, setDenied, setIndexable, setPath, setSecured
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VirtualLocalFileDescriptor

public VirtualLocalFileDescriptor(java.lang.String path,
                                  AccessPermissions accessPermissions,
                                  boolean secured,
                                  boolean denied,
                                  boolean indexable,
                                  java.lang.String realPath,
                                  boolean createIfNotExists)

VirtualLocalFileDescriptor

public VirtualLocalFileDescriptor(java.lang.String path,
                                  AccessPermissions permissions,
                                  java.lang.String realPath,
                                  boolean createIfNotExists)
Creates a new descriptor instance.

Parameters:
path - the virtual path
permissions - the file access permissions
realPath - the real file path in local system
createIfNotExists - create path if not exists

VirtualLocalFileDescriptor

public VirtualLocalFileDescriptor()
Creates a new descriptor instance.


VirtualLocalFileDescriptor

public VirtualLocalFileDescriptor(VirtualLocalFileDescriptor that)
Copy constructor.

Parameters:
that - the instance to copy
Method Detail

accept

public void accept(VirtualLocalFileDescriptor.Handler handler)
            throws java.lang.Exception
Specified by:
accept in class VirtualFileDescriptor<VirtualLocalFileDescriptor.Handler>
Throws:
java.lang.Exception

copy

public VirtualLocalFileDescriptor copy()

getRealPath

public java.lang.String getRealPath()
Returns real file path in local system.

Returns:
real file path

setRealPath

public void setRealPath(java.lang.String realPath)
Sets real file path.

Parameters:
realPath - the real file path

getName

public java.lang.String getName()
Returns resource name.

Returns:
resource name

getCreateIfNotExists

public boolean getCreateIfNotExists()
Gets whether directory should be created upon access if it does not exist.

Returns:
true to create directory, false otherwise

setCreateIfNotExists

public void setCreateIfNotExists(boolean value)
Sets whether directory should be created upon access if it does not exist.

Parameters:
value - true to create directory, false otherwise

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class VirtualFileDescriptor<VirtualLocalFileDescriptor.Handler>

JSCAPE MFT Server

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved