gov.nist.nlpir.irfapps.hci
Class HciDocBrafBroker
java.lang.Object
|
+--gov.nist.nlpir.irf.broker.PersistenceBroker
|
+--gov.nist.nlpir.irf.broker.FileBroker
|
+--gov.nist.nlpir.irf.broker.braf.BufferedRandomAccessFileBroker
|
+--gov.nist.nlpir.irf.broker.braf.DocumentBrafBroker
|
+--gov.nist.nlpir.irfapps.hci.HciDocBrafBroker
- public class HciDocBrafBroker
- extends gov.nist.nlpir.irf.broker.braf.DocumentBrafBroker
This class is a file-based broker for HciDoc objects
objects
- Version:
- $Revision: 1.2 $
- Author:
- This software was produced by NIST, an agency of the U.S. government,
and by statute is not subject to copyright in the United States.
Recipients of this software assume all responsibilities associated
with its operation, modification and maintenance.
Fields inherited from class gov.nist.nlpir.irf.broker.braf.BufferedRandomAccessFileBroker |
openFiles,
sizeOfRecord |
Methods inherited from class gov.nist.nlpir.irf.broker.braf.BufferedRandomAccessFileBroker |
,
readRecordFromFile,
shutdown,
writeRecordToFile |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
broker
private static HciDocBrafBroker broker
- The static reference to singleton broker for this class of objects
proxyDeHtml_Class
private static java.lang.Class proxyDeHtml_Class
- Working instance of a ProxyDE_... class
proxyDeStringClass
private static java.lang.Class proxyDeStringClass
- Working instance of a ProxyDE_... class
proxyDePersonNameClass
private static java.lang.Class proxyDePersonNameClass
- Working instance of a ProxyDE_... class
HciDocBrafBroker
public HciDocBrafBroker()
instance
public static HciDocBrafBroker instance()
- Return the instance of the singleton class: HCI_doc file persistence
broker, creating one first if one has not already been created.
- Returns:
- the doc file persistence broker
currentRecordAsObject
public java.lang.Object currentRecordAsObject(java.lang.Object arg)
- Materializes the object associated with the designated argument.
This concrete version will handle any part of the materialization
which is specific to the object.
- Parameters:
arg
- Information needed to materialize the object- Returns:
- Materialize the designated object
- Overrides:
- currentRecordAsObject in class FileBroker
currentObjectAsRecord
public Handle currentObjectAsRecord(java.lang.Object arg)
- Dematerializes the object associated with the designated argument.
This concrete version will handle any part of the materialization
which is specific to the object.
- Parameters:
arg
- Object to be stored.- Returns:
- handle Information needed to materialize the object
- Overrides:
- currentObjectAsRecord in class FileBroker
writeObject
public void writeObject(java.lang.Object obj,
BufferedRandomAccessFile braf)
throws java.io.IOException
- Overrides the default writeObject with tailored code
- Overrides:
- writeObject in class gov.nist.nlpir.irf.broker.braf.BufferedRandomAccessFileBroker
readObject
public java.lang.Object readObject(BufferedRandomAccessFile braf)
throws java.io.IOException
- Overrides the default readObject with tailored code
- Returns:
- the deserialized object
- Overrides:
- readObject in class gov.nist.nlpir.irf.broker.braf.BufferedRandomAccessFileBroker