Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mitre.cvw.util
Class XmlCProperties  view XmlCProperties download XmlCProperties.java

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byorg.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 Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
private  java.util.Hashtable currentDocument
           
private  java.lang.String docid
           
private  java.lang.String key
           
private static java.lang.String prolog
           
private  boolean properties
           
 
Fields inherited from class java.util.Hashtable
 
Constructor Summary
XmlCProperties()
           
XmlCProperties(int numberDocs)
           
 
Method Summary
 void characterData(CharacterDataEvent event)
           
 void comment(CommentEvent event)
           
 void endCdataSection(EndCdataSectionEvent event)
           
 void endDocument()
           
 void endDocumentTypeDeclaration(EndDocumentTypeDeclarationEvent event)
           
 void endElement(EndElementEvent event)
           
 void endEntityReference(EndEntityReferenceEvent event)
           
 void endProlog(EndPrologEvent event)
           
 void load(java.io.InputStream in)
          Reads an XML property list from an input stream.
 void markupDeclaration(MarkupDeclarationEvent event)
           
 void processingInstruction(ProcessingInstructionEvent pi)
           
 void startCdataSection(StartCdataSectionEvent event)
           
 void startDocument()
           
 void startDocumentTypeDeclaration(StartDocumentTypeDeclarationEvent event)
           
 void startElement(StartElementEvent event)
           
 void startEntityReference(StartEntityReferenceEvent event)
           
 void store(java.io.OutputStream out, java.lang.String header)
          Stores this property list to the specified output stream.
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

XmlCProperties

public XmlCProperties(int numberDocs)

XmlCProperties

public XmlCProperties()
Method Detail

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.