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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.neuron.jaffer.Utility
      extended bycom.neuron.jaffer.AFP_CNode
          extended bycom.neuron.jaffer.OS_Volume.OSNode
All Implemented Interfaces:
AFP_Constants
Enclosing class:
OS_Volume

private class OS_Volume.OSNode
extends AFP_CNode


Field Summary
private  java.io.File file
           
private  byte[] finderInfo
           
private  long modDate
           
private  java.lang.String name
           
private  java.util.Hashtable nodes
           
private  int pid
           
private  long resourceLength
           
 
Fields inherited from class com.neuron.jaffer.AFP_CNode
MODE_READ, MODE_READ_LOCK, MODE_WRITE, MODE_WRITE_LOCK, NODE_DIRECTORY, NODE_FILE, NODE_UNKNOWN
 
Fields inherited from class com.neuron.jaffer.Utility
 
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.OSNode(int pid, int id, java.lang.String name, java.io.File file)
           
 
Method Summary
 void addOffspring(OS_Volume.OSNode nn)
           
 OS_Volume.OSNode addOffspring(java.lang.String name, java.io.File file)
           
private  void cacheResourceInfo()
           
 AFP_CNode createDirectory(java.lang.String name)
           
 AFP_CNode createFile(java.lang.String name)
           
 boolean delete()
           
 int getAccessRights()
           
 int getAttributes()
           
 int getBackupDate()
           
 int getCreateDate()
           
 int getDataForkLen()
           
 long getExtDataForkLen()
           
 long getExtResourceForkLen()
           
 byte[] getFinderInfo()
           
 int getGroupID()
           
 int getLaunchLimit()
           
 java.lang.String getLongName()
           
 int getModifiedDate()
           
 int getNodeType()
           
 AFP_CNode getOffspringByName(java.lang.String name)
           
 int getOffspringCount()
           
 java.util.Enumeration getOffspringEnumeration()
           
 int getOwnerID()
           
 int getParentNodeID()
           
 java.lang.String getRealName()
           
private  OS_Volume.ResourceFork getResourceFork(int flags)
           
private  java.io.File getResourceForkFile()
           
 int getResourceForkLen()
           
 java.lang.String getShortName()
           
 byte[] getUnixPrivs()
           
 java.lang.String getUTF8Name()
           
 boolean moveTo(AFP_CNode dir, java.lang.String name)
           
 AFP_Fork openFileFork(int flags)
           
 AFP_Fork openResourceFork(int flags)
           
private  void saveResourceInfo()
           
 void scanDir()
           
 void setAttributes(int attr)
           
 void setBackupDate(int date)
           
 void setCreateDate(int date)
           
 void setFinderInfo(byte[] b)
           
 void setModifiedDate(int date)
           
 void setParentID(int id)
           
 void setUnixPrivs(byte[] b)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class com.neuron.jaffer.AFP_CNode
finderInfo, getNodeID, isDirectory, isFile, longName, shortName, unixPrivs
 
Methods inherited from class com.neuron.jaffer.Utility
afp2unixTime, bits, dump, dump, dump, dump, empty, error, hasBits, hex, hex, hex, isValidLongName, list, readAFPString, readCString, readInt2, readInt4, readInt8, readPString, readPStringArray, unix2afpTime, writeInt2, writeInt4, writeInt8, writePString, writePStringArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pid

private int pid

nodes

private java.util.Hashtable nodes

name

private java.lang.String name

file

private java.io.File file

finderInfo

private byte[] finderInfo

resourceLength

private long resourceLength

modDate

private volatile long modDate
Constructor Detail

OS_Volume.OSNode

OS_Volume.OSNode(int pid,
                 int id,
                 java.lang.String name,
                 java.io.File file)
Method Detail

setParentID

public void setParentID(int id)

addOffspring

public void addOffspring(OS_Volume.OSNode nn)

addOffspring

public OS_Volume.OSNode addOffspring(java.lang.String name,
                                     java.io.File file)

saveResourceInfo

private void saveResourceInfo()

cacheResourceInfo

private void cacheResourceInfo()

scanDir

public void scanDir()

getRealName

public java.lang.String getRealName()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


getResourceFork

private OS_Volume.ResourceFork getResourceFork(int flags)

getResourceForkFile

private java.io.File getResourceForkFile()

getNodeType

public int getNodeType()
Specified by:
getNodeType in class AFP_CNode

delete

public boolean delete()
Specified by:
delete in class AFP_CNode

getParentNodeID

public int getParentNodeID()
Specified by:
getParentNodeID in class AFP_CNode

getOffspringCount

public int getOffspringCount()
Specified by:
getOffspringCount in class AFP_CNode

getAttributes

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

setAttributes

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

getOwnerID

public int getOwnerID()
Specified by:
getOwnerID in class AFP_CNode

getGroupID

public int getGroupID()
Specified by:
getGroupID in class AFP_CNode

getCreateDate

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

setCreateDate

public void setCreateDate(int date)
Specified by:
setCreateDate in class AFP_CNode

getModifiedDate

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

setModifiedDate

public void setModifiedDate(int date)
Specified by:
setModifiedDate in class AFP_CNode

getBackupDate

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

setBackupDate

public void setBackupDate(int date)
Specified by:
setBackupDate in class AFP_CNode

getFinderInfo

public byte[] getFinderInfo()
Specified by:
getFinderInfo in class AFP_CNode

setFinderInfo

public void setFinderInfo(byte[] b)
Specified by:
setFinderInfo in class AFP_CNode

getLongName

public java.lang.String getLongName()
Specified by:
getLongName in class AFP_CNode

getShortName

public java.lang.String getShortName()
Specified by:
getShortName in class AFP_CNode

getUTF8Name

public java.lang.String getUTF8Name()
Specified by:
getUTF8Name in class AFP_CNode

getUnixPrivs

public byte[] getUnixPrivs()
Specified by:
getUnixPrivs in class AFP_CNode

setUnixPrivs

public void setUnixPrivs(byte[] b)
Specified by:
setUnixPrivs in class AFP_CNode

getAccessRights

public int getAccessRights()
Specified by:
getAccessRights in class AFP_CNode

moveTo

public boolean moveTo(AFP_CNode dir,
                      java.lang.String name)
Specified by:
moveTo in class AFP_CNode

createDirectory

public AFP_CNode createDirectory(java.lang.String name)
Specified by:
createDirectory in class AFP_CNode

createFile

public AFP_CNode createFile(java.lang.String name)
Specified by:
createFile in class AFP_CNode

getOffspringByName

public AFP_CNode getOffspringByName(java.lang.String name)
Specified by:
getOffspringByName in class AFP_CNode

getOffspringEnumeration

public java.util.Enumeration getOffspringEnumeration()
Specified by:
getOffspringEnumeration in class AFP_CNode

getLaunchLimit

public int getLaunchLimit()
Specified by:
getLaunchLimit in class AFP_CNode

getDataForkLen

public int getDataForkLen()
Specified by:
getDataForkLen in class AFP_CNode

getResourceForkLen

public int getResourceForkLen()
Specified by:
getResourceForkLen in class AFP_CNode

getExtDataForkLen

public long getExtDataForkLen()
Specified by:
getExtDataForkLen in class AFP_CNode

getExtResourceForkLen

public long getExtResourceForkLen()
Specified by:
getExtResourceForkLen in class AFP_CNode

openFileFork

public AFP_Fork openFileFork(int flags)
Specified by:
openFileFork in class AFP_CNode

openResourceFork

public AFP_Fork openResourceFork(int flags)
Specified by:
openResourceFork in class AFP_CNode