All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

C

cantConvert(Object). Method in class au.com.pharos.packing.Packing
Helper function that generates an IllegalArgumentException
checkError(). Method in class au.com.pharos.gdbm.GdbmDictionary
close(). Method in interface au.com.pharos.gdbm.Closeable
Write outstanding changes to the underlying database, and break the connection, freeing any associated resources or locks.
close(). Method in class au.com.pharos.gdbm.GdbmDictionary
Write outstanding changes to the underlying database, and close the database.
close(). Method in class au.com.pharos.gdbm.GdbmFile
Close the database file if it is still open.

D

delete(Object). Method in class au.com.pharos.gdbm.GdbmFile
Remove a record from the database.

E

elements(). Method in class au.com.pharos.gdbm.GdbmDictionary
exists(Object). Method in class au.com.pharos.gdbm.GdbmFile
Indicate whether the specified key is in the database, without returning the value.

F

FAST. Static variable in class au.com.pharos.gdbm.GdbmFile
Flag indicating GDBM should write to the database without disc synchronization.
fetch(Object). Method in class au.com.pharos.gdbm.GdbmFile
Retrieve the value corresponding to a particular key.
finalize(). Method in class au.com.pharos.gdbm.GdbmFile
Close the database when the GdbmFile is garbage-collected.
fromBytes(byte[]). Method in class au.com.pharos.packing.NativeStringPacking
Convert an array of bytes into a String
fromBytes(byte[]). Method in class au.com.pharos.packing.Packing
Reconstitute an array of bytes into an object.
fromBytes(byte[]). Method in class au.com.pharos.packing.QuotedVectorPacking
Interprets raw as a packed quoted Vector, and returns the unpacked Vector of strings.
fromBytes(byte[]). Method in class au.com.pharos.packing.RawPacking
Performs the trivial unpacking case of returning raw untouched.
fromBytes(byte[]). Method in class au.com.pharos.packing.SerializationPacking
Interprets raw as a Java serialization stream, and returns the first object read from that stream.
fromBytes(byte[]). Method in class au.com.pharos.packing.StringPacking
Decode an array of bytes using the default String encoding.

G

GdbmDictionary(GdbmFile). Constructor for class au.com.pharos.gdbm.GdbmDictionary
GdbmException(String). Constructor for class au.com.pharos.gdbm.GdbmException
Constructs a GdbmException with the specified reason.
GdbmFile(String, int). Constructor for class au.com.pharos.gdbm.GdbmFile
Creates a new GdbmFile object representing an disk database.
get(Object). Method in class au.com.pharos.gdbm.GdbmDictionary
getLibraryVersion(). Static method in class au.com.pharos.gdbm.GdbmFile
Returns a string indicating the version of the underlying GDBM library.
getWrapperVersion(). Static method in class au.com.pharos.gdbm.GdbmFile
Return a string indicating the version of the JavaGDBM library wrapper.

I

isEmpty(). Method in class au.com.pharos.gdbm.GdbmDictionary
isEmpty(). Method in class au.com.pharos.gdbm.GdbmFile
Check whether the database is empty.
isOpen(). Method in class au.com.pharos.gdbm.GdbmFile
Indicate whether the database is open or not.
isWritable(). Method in class au.com.pharos.gdbm.GdbmFile
Indicate whether the database is writable.

K

keys(). Method in class au.com.pharos.gdbm.GdbmDictionary
keys(). Method in class au.com.pharos.gdbm.GdbmFile
Return an enumeration which will return all of the keys for the database of the file in (apparently) random order.

M

main(String[]). Static method in class au.com.pharos.gdbm.GdbmTest
main(String[]). Static method in class au.com.pharos.packing.TestQuotedVectorPacking

N

NativeStringPacking(). Constructor for class au.com.pharos.packing.NativeStringPacking
NEWDB. Static variable in class au.com.pharos.gdbm.GdbmFile
The caller wants exclusive read/write access, and the database should be replaced if it already exists.

O

ok(int). Static method in class au.com.pharos.test.Test
Register that a particular test executed successfully, and output a success or failure message.
ok(int, boolean). Static method in class au.com.pharos.test.Test
Register the result of a test, and output a success or failure message.

P

Packing(). Constructor for class au.com.pharos.packing.Packing
put(Object, Object). Method in class au.com.pharos.gdbm.GdbmDictionary

Q

QuotedVectorPacking(). Constructor for class au.com.pharos.packing.QuotedVectorPacking
Constructs a QuotedVectorPacking using the default separator character ':' and escape character '%'.
QuotedVectorPacking(char, char). Constructor for class au.com.pharos.packing.QuotedVectorPacking
Constructs a QuotedVectorPacking with specified separator and hex-escape characters.

R

RawPacking(). Constructor for class au.com.pharos.packing.RawPacking
READER. Static variable in class au.com.pharos.gdbm.GdbmFile
Indicates that the caller will just read the database.
remove(Object). Method in class au.com.pharos.gdbm.GdbmDictionary
reorganize(). Method in class au.com.pharos.gdbm.GdbmFile
Compact the database file.

S

SerializationPacking(). Constructor for class au.com.pharos.packing.SerializationPacking
setKeyPacking(Packing). Method in class au.com.pharos.gdbm.GdbmFile
Set the object to be used as the packing strategy for converting key objects to and from the byte arrays stored in the database.
setValuePacking(Packing). Method in class au.com.pharos.gdbm.GdbmFile
Set the object to be used as the packing strategy for converting value objects to and from the byte arrays stored in the database.
size(). Method in class au.com.pharos.gdbm.GdbmDictionary
size(). Method in class au.com.pharos.gdbm.GdbmFile
Count the records in the database.
store(Object, Object). Method in class au.com.pharos.gdbm.GdbmFile
Store a value in the database, replacing any existing value with the same key.
storeNoReplace(Object, Object). Method in class au.com.pharos.gdbm.GdbmFile
Store a value in the database, unless a record with the same key already exists.
StringPacking(). Constructor for class au.com.pharos.packing.StringPacking
summary(). Static method in class au.com.pharos.test.Test
Print a summary of test results.
sync(). Method in interface au.com.pharos.gdbm.Closeable
Write outstanding changes to the underlying database, but leave the database open.
sync(). Method in class au.com.pharos.gdbm.GdbmDictionary
Write outstanding changes to the underlying database, but leave the database open.
sync(). Method in class au.com.pharos.gdbm.GdbmFile
Flush changes to disk.

T

toBytes(Object). Method in class au.com.pharos.packing.NativeStringPacking
Convert an object to an ASCII String representation.
toBytes(Object). Method in class au.com.pharos.packing.Packing
Convert an object to an array of bytes.
toBytes(Object). Method in class au.com.pharos.packing.QuotedVectorPacking
Convert a Vector of Strings to a QuotedVector represented as an array of bytes.
toBytes(Object). Method in class au.com.pharos.packing.RawPacking
Perform the trivial packing case, casting an array of bytes into the same.
toBytes(Object). Method in class au.com.pharos.packing.SerializationPacking
Convert an object to a Java serialization format.
toBytes(Object). Method in class au.com.pharos.packing.StringPacking
Convert a String to an array of bytes using Java's default encoding.

W

WRCREAT. Static variable in class au.com.pharos.gdbm.GdbmFile
The caller wants exclusive read/write access, and the database should be created if it does not already exist.
WRITER. Static variable in class au.com.pharos.gdbm.GdbmFile
The caller wants read/write access to an existing database and requires exclusive access.