Class XUXmlWriter
java.lang.Object
com.biglybt.core.xml.util.XUXmlWriter
- Direct Known Subclasses:
BEncoder.XMLEncoder, StatsWriterImpl, TOTorrentXMLSerialiser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate booleanprivate static final intprivate PrintWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected StringencodeBytes(byte[] bytes) static Stringprotected voidexdent()protected voidprotected voidindent()protected voidprotected voidsetGenericSimple(boolean simple) protected voidsetOutputStream(OutputStream _output_stream) protected voidsetOutputWriter(Writer _writer) static String[]splitWithEscape(String str, char delim) static StringunescapeXML(String str) protected voidwriteGeneric(byte[] bytes) protected voidwriteGeneric(Long l) protected voidwriteGeneric(Object obj) protected voidwriteGeneric(String str) protected voidwriteGeneric(List list) protected voidwriteGeneric(Map map) protected voidwriteGenericMapEntry(String name, Object value) protected voidwriteLineEscaped(String str) protected voidwriteLineRaw(String str) protected voidwriteLocalisableTag(String tag, byte[] content) protected voidprotected voidprotected voidprotected 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
-