gov.nist.nlpir.irfapps.trec.fbis
Class FbisDocumentBrafBroker
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.trec.fbis.FbisDocumentBrafBroker
- public class FbisDocumentBrafBroker
- extends gov.nist.nlpir.irf.broker.braf.DocumentBrafBroker
This class is a file-based broker for FbisDocument objects
- Version:
- $Revision: 1.1 $
- 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 FbisDocumentBrafBroker broker
- The static reference to singleton broker for this class of objects
proxyDeHtml_Class
private static java.lang.Class proxyDeHtml_Class
- Working instance of ProxyDE_...
proxyDeStringClass
private static java.lang.Class proxyDeStringClass
- Working instance of ProxyDE_...
FbisDocumentBrafBroker
public FbisDocumentBrafBroker()
instance
public static FbisDocumentBrafBroker instance()
- Return the instance of the singleton class: FBIS 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