|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alien.enterpriseRFID.util.XMLWriter
This is a simple XML utility class that writes the contents of a Hashtable into an XML-formatted text string.
Constructor Summary | |
XMLWriter(java.util.Hashtable hashtable)
Constructs a new XMLWriter to convert a Hashtable to an XML-formatted text string. |
|
XMLWriter(java.util.Hashtable hashtable,
java.lang.String topLevelTag)
Constructs a new XMLWriter to convert a Hashtable to an XML-formatted text string. |
|
XMLWriter(java.util.Hashtable hashtable,
java.lang.String topLevelTag,
java.lang.String lineTerminator)
Constructs a new XMLWriter to convert a Hashtable to an XML-formatted text string. |
Method Summary | |
java.util.Hashtable |
getHashtable()
Returns the Hashtable that this XMLWriter uses to generate its XML document. |
int |
getIndentSize()
Returns the number of space characters used to indent each level of XML output. |
java.lang.String |
getLineTerminator()
Returns the line terminator string that this XMLWriter uses to end each of the lines of its XML output. |
java.lang.String |
getTopLevelTag()
Returns the top-level tag string that this XML writer wraps around its XML output. |
void |
setHashtable(java.util.Hashtable hashtable)
Sets the Hashtable that this XMLWriter uses to generate its XML document. |
void |
setIndentSize(int indentSize)
Sets the number of space characters used to indent each level of XML output. |
void |
setLineTerminator(java.lang.String lineTerminator)
Sets the line terminator string that this XMLWriter uses to end each of the lines of its XML output. |
void |
setTopLevelTag(java.lang.String topLevelTag)
Sets the top-level tag string that this XML writer wraps around its XML output. |
java.lang.String |
writeXML()
Writes out the contents of this XMLWriter's Hashtable to an XML-formatted string. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLWriter(java.util.Hashtable hashtable)
hashtable
- the Hashtable to write outpublic XMLWriter(java.util.Hashtable hashtable, java.lang.String topLevelTag)
hashtable
- the Hashtable to write outtopLevelTag
- tag name to encapsulate output withpublic XMLWriter(java.util.Hashtable hashtable, java.lang.String topLevelTag, java.lang.String lineTerminator)
hashtable
- the Hashtable to write outtopLevelTag
- tag name to encapsulate output withlineTerminator
- the string to place at the end of each lineMethod Detail |
public java.util.Hashtable getHashtable()
setHashtable(Hashtable)
public void setHashtable(java.util.Hashtable hashtable)
hashtable
- this XMLWriter's hashtablegetHashtable()
public java.lang.String getLineTerminator()
setLineTerminator(String)
public void setLineTerminator(java.lang.String lineTerminator)
lineTerminator
- the string to use to terminate each line of XML outputgetLineTerminator()
public java.lang.String getTopLevelTag()
setTopLevelTag(String)
public void setTopLevelTag(java.lang.String topLevelTag)
topLevelTag
- the top-level tag for XML outputgetTopLevelTag()
public int getIndentSize()
setIndentSize(int)
public void setIndentSize(int indentSize)
indentSize
- the index size (# of spaces)public java.lang.String writeXML()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |