Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.neuron.jaffer
Class OS_Volume  view OS_Volume download OS_Volume.java

java.lang.Object
  extended bycom.neuron.jaffer.AFP_Volume
      extended bycom.neuron.jaffer.OS_Volume
All Implemented Interfaces:
AFP_Constants

class OS_Volume
extends AFP_Volume


Nested Class Summary
private  class OS_Volume.DataFork
           
private  class OS_Volume.OSNode
           
private  class OS_Volume.ResourceFork
           
 
Field Summary
private  java.util.Hashtable allNodes
           
private  int nextID
           
private  java.lang.String passwd
           
private  boolean readonly
           
private  java.io.File rootDir
           
private  java.lang.String volName
           
 
Fields inherited from class com.neuron.jaffer.AFP_Volume
 
Fields inherited from interface com.neuron.jaffer.AFP_Constants
ACCESS_ALL_READ, ACCESS_ALL_SEARCH, ACCESS_ALL_WRITE, ACCESS_EVERYTHING, ACCESS_GROUP_READ, ACCESS_GROUP_SEARCH, ACCESS_GROUP_WRITE, ACCESS_OWNER_READ, ACCESS_OWNER_SEARCH, ACCESS_OWNER_WRITE, ACCESS_UA_BLANK, ACCESS_UA_OWNER, ACCESS_UA_READ, ACCESS_UA_SEARCH, ACCESS_UA_WRITE, CAP_CHANGE_PASSWORD, CAP_COPY_FILE, CAP_MESSAGES, CAP_NO_PASSWD_SAVE, CAP_NOTIFICATIONS, CAP_OPEN_DIRECTORY, CAP_RECONNECT, CAP_SIGNATURE, CAP_SUPER_CLIENT, CAP_TCPIP, CAP_UTF8_NAME, CMD_ADD_APPL, CMD_ADD_COMMENT, CMD_ADD_ICON, CMD_BYTE_RANGE_LOCK, CMD_BYTE_RANGE_LOCK_EXT, CMD_CAT_SEARCH, CMD_CHANGE_PASSWORD, CMD_CLOSE_DIR, CMD_CLOSE_DT, CMD_CLOSE_FORK, CMD_CLOSE_VOL, CMD_COPY_FILE, CMD_CREATE_DIR, CMD_CREATE_FILE, CMD_CREATE_ID, CMD_DELETE, CMD_DELETE_ID, CMD_ENUMERATE, CMD_ENUMERATE_EXT, CMD_ENUMERATE_EXT2, CMD_EXCHANGE_FILES, CMD_FLUSH, CMD_FLUSH_FORK, CMD_GET_APPL, CMD_GET_COMMENT, CMD_GET_FILE_DIR_PARMS, CMD_GET_FORM_PARMS, CMD_GET_ICON, CMD_GET_ICON_INFO, CMD_GET_SESSION_TOKEN, CMD_GET_SRVR_INFO, CMD_GET_SRVR_MSG, CMD_GET_SRVR_PARMS, CMD_GET_USER_INFO, CMD_GET_VOL_PARMS, CMD_LOGIN, CMD_LOGIN_CONT, CMD_LOGIN_EXT, CMD_LOGOUT, CMD_MAP_ID, CMD_MAP_NAME, CMD_MOVE_AND_RENAME, CMD_OPEN_DIR, CMD_OPEN_DT, CMD_OPEN_FORK, CMD_OPEN_VOL, CMD_READ, CMD_READ_EXT, CMD_RENAME, CMD_RESOLVE_ID, CMD_RMV_APPL, CMD_RMV_COMMENT, CMD_SET_DIR_PARMS, CMD_SET_FILE_DIR_PARMS, CMD_SET_FILE_PARMS, CMD_SET_FORK_PARMS, CMD_SET_VOL_PARMS, CMD_WRITE, CMD_WRITE_EXT, COMMAND, DHX_G, DHX_P, DIR_ATTR_BACKUP_NEEDED, DIR_ATTR_DELETE_INHIBIT, DIR_ATTR_IN_EXP_FOLDER, DIR_ATTR_INVISIBLE, DIR_ATTR_IS_EXP_FOLDER, DIR_ATTR_MOUNTED, DIR_ATTR_RENAME_INHIBIT, DIR_ATTR_SET_CLEAR, DIR_ATTR_SYSTEM, DIR_BIT_ACCESS_RIGHTS, DIR_BIT_ATTRIBUTE, DIR_BIT_BACKUP_DATE, DIR_BIT_CREATE_DATE, DIR_BIT_FINDER_INFO, DIR_BIT_GROUP_ID, DIR_BIT_LONG_NAME, DIR_BIT_MOD_DATE, DIR_BIT_NODE_ID, DIR_BIT_OFFSPRING_COUNT, DIR_BIT_OWNER_ID, DIR_BIT_PARENT_DIR_ID, DIR_BIT_SHORT_NAME, DIR_BIT_UNIX_PRIVS, DIR_BIT_UTF8_NAME, ERR_ACCESS_DENIED, ERR_AUTH_CONTINUE, ERR_BAD_UAM, ERR_BAD_VERS_NUM, ERR_BITMAP_ERR, ERR_CALL_NOT_SUPPORTED, ERR_CANT_MOVE, ERR_CANT_RENAME, ERR_DENY_CONFLICT, ERR_DIR_NOT_EMPTY, ERR_DIR_NOT_FOUND, ERR_DISK_FULL, ERR_EOF_ERR, ERR_FILE_BUSY, ERR_FLAT_VOL, ERR_ICON_TYPE_ERROR, ERR_ITEM_NOT_FOUND, ERR_LOCK_ERR, ERR_MISC_ERR, ERR_NO_ERR, ERR_NO_MORE_LOCKS, ERR_NO_SERVER, ERR_OBJECT_EXISTS, ERR_OBJECT_LOCKED, ERR_OBJECT_NOT_FOUND, ERR_OBJECT_TYPE_ERR, ERR_PARAM_ERR, ERR_RANGE_NOT_LOCKED, ERR_RANGE_OVERLAP, ERR_SERVER_GOING_DOWN, ERR_SESS_CLOSED, ERR_TOO_MANY_FILES_OPEN, ERR_USER_NOT_AUTH, ERR_VOL_LOCKED, FILE_ATTR_BACKUP_NEEDED, FILE_ATTR_COPY_PROTECT, FILE_ATTR_DALREADY_OPEN, FILE_ATTR_DELETE_INHIBIT, FILE_ATTR_INVISIBLE, FILE_ATTR_MULTIUSER, FILE_ATTR_RALREADY_OPEN, FILE_ATTR_RENAME_INHIBIT, FILE_ATTR_SET_CLEAR, FILE_ATTR_SYSTEM, FILE_ATTR_WRITE_INHIBIT, FILE_BIT_ATTRIBUTE, FILE_BIT_BACKUP_DATE, FILE_BIT_CREATE_DATE, FILE_BIT_DATA_FORK_LEN, FILE_BIT_FINDER_INFO, FILE_BIT_LAUNCH_LIMIT, FILE_BIT_LONG_NAME, FILE_BIT_MOD_DATE, FILE_BIT_NODE_ID, FILE_BIT_PARENT_DIR_ID, FILE_BIT_RSRC_FORK_LEN, FILE_BIT_SHORT_NAME, FILE_BIT_UNIX_PRIVS, FILE_BIT_UTF8_NAME, FILE_BIT_XDATA_FORK_LEN, FILE_BIT_XRSRC_FORK_LEN, TCP_PORT, UAM_CLEARTEXT, UAM_DHX_128, UAM_DHX_DYNAMIC, UAM_GUEST, UAM_KERBEROS, UAM_RANDOM_NUM1, UAM_RANDOM_NUM2, UAM_STR_CLEARTEXT, UAM_STR_DHX_128, UAM_STR_DHX_DYNAMIC, UAM_STR_GUEST, UAM_STR_KERBEROS, UAM_STR_RANDOM_NUM1, UAM_STR_RANDOM_NUM2, UAM_UNKNOWN, VOL_ATTR_BLANK_PRIVS, VOL_ATTR_CAT_SEARCH, VOL_ATTR_FILE_IDS, VOL_ATTR_NO_NET_UIDS, VOL_ATTR_PASSWORD, VOL_ATTR_READONLY, VOL_ATTR_UNIX_PRIVS, VOL_ATTR_UTF8_NAMES, VOL_BIT_ATTRIBUTE, VOL_BIT_BACKUP_DATE, VOL_BIT_BLOCK_SIZE, VOL_BIT_BYTES_FREE, VOL_BIT_BYTES_TOTAL, VOL_BIT_CREATE_DATE, VOL_BIT_ID, VOL_BIT_MOD_DATE, VOL_BIT_NAME, VOL_BIT_SIGNATURE, VOL_BIT_XBYTES_FREE, VOL_BIT_XBYTES_TOTAL, VOL_SIG_FIXED, VOL_SIG_FLAT, VOL_SIG_VARIABLE
 
Constructor Summary
(package private) OS_Volume(java.lang.String vname, java.io.File droot)
           
 
Method Summary
private  void addNode(OS_Volume.OSNode node)
           
private  boolean canOpen(java.io.File file, int flags)
           
 java.lang.String flagsToString(int flags)
           
 int getAttributes()
           
 int getBackupDate()
           
 int getBlockSize()
           
 int getBytesFree()
           
 int getBytesTotal()
           
 AFP_CNode getCNode(int id)
           
 int getCreateDate()
           
 long getExtBytesFree()
           
 long getExtBytesTotal()
           
 int getModifiedDate()
           
 java.lang.String getName()
           
private  int getNextID()
           
 java.lang.String getPassword()
           
 int getSignature()
           
 boolean hasUnixPrivs()
           
 void setAttributes(int attr)
           
 void setBackupDate(int d)
           
 void setModifiedDate(int d)
           
 void setPassword(java.lang.String pwd)
           
 void setReadOnly(boolean ro)
           
 
Methods inherited from class com.neuron.jaffer.AFP_Volume
getID, setID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allNodes

private java.util.Hashtable allNodes

volName

private java.lang.String volName

rootDir

private java.io.File rootDir

nextID

private int nextID

readonly

private boolean readonly

passwd

private java.lang.String passwd
Constructor Detail

OS_Volume

OS_Volume(java.lang.String vname,
          java.io.File droot)
Method Detail

setReadOnly

public void setReadOnly(boolean ro)

setPassword

public void setPassword(java.lang.String pwd)

getNextID

private int getNextID()

addNode

private void addNode(OS_Volume.OSNode node)

getName

public java.lang.String getName()
Specified by:
getName in class AFP_Volume

getCreateDate

public int getCreateDate()
Specified by:
getCreateDate in class AFP_Volume

getModifiedDate

public int getModifiedDate()
Specified by:
getModifiedDate in class AFP_Volume

getBackupDate

public int getBackupDate()
Specified by:
getBackupDate in class AFP_Volume

setBackupDate

public void setBackupDate(int d)
Specified by:
setBackupDate in class AFP_Volume

setModifiedDate

public void setModifiedDate(int d)
Specified by:
setModifiedDate in class AFP_Volume

getAttributes

public int getAttributes()
Specified by:
getAttributes in class AFP_Volume

setAttributes

public void setAttributes(int attr)
Specified by:
setAttributes in class AFP_Volume

getSignature

public int getSignature()
Specified by:
getSignature in class AFP_Volume

getBlockSize

public int getBlockSize()
Specified by:
getBlockSize in class AFP_Volume

getBytesFree

public int getBytesFree()
Specified by:
getBytesFree in class AFP_Volume

getBytesTotal

public int getBytesTotal()
Specified by:
getBytesTotal in class AFP_Volume

getExtBytesFree

public long getExtBytesFree()
Specified by:
getExtBytesFree in class AFP_Volume

getExtBytesTotal

public long getExtBytesTotal()
Specified by:
getExtBytesTotal in class AFP_Volume

hasUnixPrivs

public boolean hasUnixPrivs()
Specified by:
hasUnixPrivs in class AFP_Volume

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in class AFP_Volume

getCNode

public AFP_CNode getCNode(int id)
Specified by:
getCNode in class AFP_Volume

flagsToString

public java.lang.String flagsToString(int flags)

canOpen

private boolean canOpen(java.io.File file,
                        int flags)