java.lang.Object
java.util.Dictionary
java.util.Hashtable
org.mitre.cvw.util.XmlCProperties
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class XmlCProperties
- extends java.util.Hashtable
The XmlProperties class represents a persistent
hashtable in which all entries are strings. The
XmlProperties can be saved to a stream or loaded from
a stream. XML is used as the external format.
| Nested classes inherited from class java.util.Hashtable |
|
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Fields inherited from class java.util.Hashtable |
|
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
properties
private boolean properties
docid
private java.lang.String docid
key
private java.lang.String key
currentDocument
private java.util.Hashtable currentDocument
prolog
private static final java.lang.String prolog
- See Also:
- Constant Field Values
XmlCProperties
public XmlCProperties(int numberDocs)
XmlCProperties
public XmlCProperties()
load
public void load(java.io.InputStream in)
throws java.io.IOException
- Reads an XML property list from an input stream.
startDocument
public void startDocument()
throws java.io.IOException
endDocument
public void endDocument()
throws java.io.IOException
startElement
public void startElement(StartElementEvent event)
throws java.io.IOException
characterData
public void characterData(CharacterDataEvent event)
throws java.io.IOException
endElement
public void endElement(EndElementEvent event)
throws java.io.IOException
processingInstruction
public void processingInstruction(ProcessingInstructionEvent pi)
throws java.io.IOException
endProlog
public void endProlog(EndPrologEvent event)
throws java.io.IOException
comment
public void comment(CommentEvent event)
throws java.io.IOException
startCdataSection
public void startCdataSection(StartCdataSectionEvent event)
throws java.io.IOException
endCdataSection
public void endCdataSection(EndCdataSectionEvent event)
throws java.io.IOException
startEntityReference
public void startEntityReference(StartEntityReferenceEvent event)
throws java.io.IOException
endEntityReference
public void endEntityReference(EndEntityReferenceEvent event)
throws java.io.IOException
startDocumentTypeDeclaration
public void startDocumentTypeDeclaration(StartDocumentTypeDeclarationEvent event)
throws java.io.IOException
endDocumentTypeDeclaration
public void endDocumentTypeDeclaration(EndDocumentTypeDeclarationEvent event)
throws java.io.IOException
markupDeclaration
public void markupDeclaration(MarkupDeclarationEvent event)
throws java.io.IOException
store
public void store(java.io.OutputStream out,
java.lang.String header)
throws java.io.IOException
- Stores this property list to the specified output stream. If non-null,
the string header is printed as a header attribute of the properties.