- Author:
- Job Zwiers
|
Method Summary |
StringBuilder |
appendXML(StringBuilder buf)
like writeXML(PrintWriter), except that the XML encoding is appended
to a StringBuilder. |
StringBuilder |
appendXML(StringBuilder buf,
int tab)
like writeXML(PrintWriter ,int), except that the XML encoding is appended
to a StringBuilder. |
StringBuilder |
appendXML(StringBuilder buf,
XMLFormatting fmt)
like writeXML(PrintWriter ,int), except that the XML encoding is appended
to a StringBuilder. |
String |
getXMLTag()
returns the XML tag that is used to encode this type of XMLStructure. |
XMLStructure |
readXML(Reader in)
reconstructs this XMLizable object by reading and parsing XML encoded text from a Reader. |
XMLStructure |
readXML(String s)
reconstructs this XMLizable object by parsing an XML encoded String s. |
XMLStructure |
readXML(XMLTokenizer tokenizer)
reconstructs this XMLizable object by parsing a stream of XML tokens,
that are delivered by a XMLTokenizer. |
String |
toXMLString()
yields an XML encoded String of this XMLIzable object. |
String |
toXMLString(int tab)
yields an XML encoded String of this XMLizable object. |
String |
toXMLString(XMLFormatting fmt)
yields an XML encoded String of this XMLizable object. |
void |
writeXML(PrintWriter out)
writes an XML encoded String to "out". |
void |
writeXML(PrintWriter out,
int tab)
writes an XML encoded String to "out". |
void |
writeXML(PrintWriter out,
XMLFormatting fmt)
writes an XML encoded String to "out". |
readXML
XMLStructure readXML(Reader in)
throws IOException
- reconstructs this XMLizable object by reading and parsing XML encoded text from a Reader.
This method can throw an (unchecked) ScanException in case of incorrectly
formatted XML.
- Throws:
IOException
readXML
XMLStructure readXML(String s)
- reconstructs this XMLizable object by parsing an XML encoded String s.
This method can throw an (unchecked) ScanException in case of incorrectly
formatted XML.
readXML
XMLStructure readXML(XMLTokenizer tokenizer)
throws IOException
- reconstructs this XMLizable object by parsing a stream of XML tokens,
that are delivered by a XMLTokenizer.
This method need not be supported, in which case the method should throw
a java.lang.UnsupportedOperationException.
This method can throw an (unchecked) ScanException in case of incorrectly
formatted XML.
- Throws:
IOException
toXMLString
String toXMLString()
- yields an XML encoded String of this XMLIzable object.
The readXML() methods should be able to reconstruct this object from
the String delivered by toXMLString().
toXMLString
String toXMLString(int tab)
- yields an XML encoded String of this XMLizable object.
The readXML() methods should be able to reconstruct this object from
the String delivered by toXMLString().
toXMLString
String toXMLString(XMLFormatting fmt)
- yields an XML encoded String of this XMLizable object.
The readXML() methods should be able to reconstruct this object from
the String delivered by toXMLString().
appendXML
StringBuilder appendXML(StringBuilder buf)
- like writeXML(PrintWriter), except that the XML encoding is appended
to a StringBuilder.
the latter must be returned.
appendXML
StringBuilder appendXML(StringBuilder buf,
int tab)
- like writeXML(PrintWriter ,int), except that the XML encoding is appended
to a StringBuilder.
The latter must be returned.
appendXML
StringBuilder appendXML(StringBuilder buf,
XMLFormatting fmt)
- like writeXML(PrintWriter ,int), except that the XML encoding is appended
to a StringBuilder.
The latter must be returned.
writeXML
void writeXML(PrintWriter out,
int tab)
- writes an XML encoded String to "out".
The int "tab" can be used as a hint for indentation, and
denotes the indentation to be applied to the XML code
as a whole.
This String should equal the result of toXMLString(tab).
writeXML
void writeXML(PrintWriter out,
XMLFormatting fmt)
- writes an XML encoded String to "out".
The int "tab" can be used as a hint for indentation, and
denotes the indentation to be applied to the XML code
as a whole.
This String should equal the result of toXMLString(tab).
writeXML
void writeXML(PrintWriter out)
- writes an XML encoded String to "out".
This String should equal the result of toXMLString().
getXMLTag
String getXMLTag()
- returns the XML tag that is used to encode this type of XMLStructure.