com.jscape.inet.vfs
Class VirtualLocalFileDescriptor

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

public final class VirtualLocalFileDescriptor
extends VirtualFileDescriptor

Contains information about local file.

Version:
1.0
Author:
Alex
See Also:
Source code

Constructor Summary
VirtualLocalFileDescriptor()
          Creates a new descriptor instance.
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
 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.
 
Methods inherited from class com.jscape.inet.vfs.VirtualFileDescriptor
getAccessPermissions, getPath, isDenied, isSecured, setAccessPermissions, setDenied, setPath, setSecured
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualLocalFileDescriptor

public VirtualLocalFileDescriptor()
Creates a new descriptor instance.


VirtualLocalFileDescriptor

public VirtualLocalFileDescriptor(VirtualLocalFileDescriptor that)
Copy constructor.

Parameters:
that - the instance to copy

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
Method Detail

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 VirtualFileDescriptor

hashCode

public int hashCode()
Overrides:
hashCode in class VirtualFileDescriptor


Copyright © 2007 JSCAPE Corp. All Rights Reserved.