Package com.biglybt.core.xml.util
Class XUXmlWriter
java.lang.Object
com.biglybt.core.xml.util.XUXmlWriter
- Direct Known Subclasses:
BEncoder.XMLEncoder
,StatsWriterImpl
,TOTorrentXMLSerialiser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private boolean
private static final int
private PrintWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected String
encodeBytes
(byte[] bytes) static String
protected void
exdent()
protected void
protected void
indent()
protected void
protected void
setGenericSimple
(boolean simple) protected void
setOutputStream
(OutputStream _output_stream) protected void
setOutputWriter
(Writer _writer) static String[]
splitWithEscape
(String str, char delim) static String
unescapeXML
(String str) protected void
writeGeneric
(byte[] bytes) protected void
writeGeneric
(Long l) protected void
writeGeneric
(Object obj) protected void
writeGeneric
(String str) protected void
writeGeneric
(List list) protected void
writeGeneric
(Map map) protected void
writeGenericMapEntry
(String name, Object value) protected void
writeLineEscaped
(String str) protected void
writeLineRaw
(String str) protected void
writeLocalisableTag
(String tag, byte[] content) protected void
protected void
protected void
protected void
-
Field Details
-
INDENT_AMOUNT
private static final int INDENT_AMOUNT- See Also:
-
current_indent_string
-
writer
-
generic_simple
private boolean generic_simple
-
-
Constructor Details
-
XUXmlWriter
protected XUXmlWriter() -
XUXmlWriter
-
-
Method Details
-
setOutputStream
-
setOutputWriter
-
setGenericSimple
protected void setGenericSimple(boolean simple) -
writeTag
-
writeTag
-
writeTag
-
writeLineRaw
-
writeLineEscaped
-
resetIndent
protected void resetIndent() -
indent
protected void indent() -
exdent
protected void exdent() -
escapeXML
-
unescapeXML
-
splitWithEscape
-
flushOutputStream
protected void flushOutputStream() -
closeOutputStream
protected void closeOutputStream() -
writeGenericMapEntry
-
writeGeneric
-
writeGeneric
-
writeGeneric
-
writeGeneric
protected void writeGeneric(byte[] bytes) -
writeGeneric
-
writeGeneric
-
writeTag
-
writeLocalisableTag
-
encodeBytes
-