swishej
Class FileHash

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--swishej.FileHash

class FileHash
extends java.util.Hashtable

Class to remember the file short to long number mapping.

See Also:
Serialized Form

Fields inherited from class java.util.Hashtable
count, ENTRIES, entrySet, KEYS, keySet, loadFactor, modCount, serialVersionUID, table, threshold, values, VALUES
 
Constructor Summary
(package private) FileHash()
           
 
Method Summary
(package private)  void addfile(int fileShort, int fileLong)
          Adds a mapping of a file short number to a file long number.
(package private)  int getfilenum(int fileShort)
          Retrieves the file long number given file short number.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, readObject, rehash, remove, size, toString, values, writeObject
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

FileHash

FileHash()
Method Detail

addfile

void addfile(int fileShort,
             int fileLong)
Adds a mapping of a file short number to a file long number.
Parameters:
fileShort - file short number
fileLong - file long number

getfilenum

int getfilenum(int fileShort)
Retrieves the file long number given file short number.
Parameters:
fileShort - file short number
Returns:
file long number or 0


Contact: Christian.Werner@t-online.de