Class XUXmlWriter

java.lang.Object
com.biglybt.core.xml.util.XUXmlWriter
Direct Known Subclasses:
BEncoder.XMLEncoder, StatsWriterImpl, TOTorrentXMLSerialiser

public class XUXmlWriter extends Object
  • Field Details

    • INDENT_AMOUNT

      private static final int INDENT_AMOUNT
      See Also:
    • current_indent_string

      private String current_indent_string
    • writer

      private PrintWriter writer
    • generic_simple

      private boolean generic_simple
  • Constructor Details

    • XUXmlWriter

      protected XUXmlWriter()
    • XUXmlWriter

      protected XUXmlWriter(OutputStream _output_stream)
  • Method Details

    • setOutputStream

      protected void setOutputStream(OutputStream _output_stream)
    • setOutputWriter

      protected void setOutputWriter(Writer _writer)
    • setGenericSimple

      protected void setGenericSimple(boolean simple)
    • writeTag

      protected void writeTag(String tag, String content)
    • writeTag

      protected void writeTag(String tag, long content)
    • writeTag

      protected void writeTag(String tag, boolean content)
    • writeLineRaw

      protected void writeLineRaw(String str)
    • writeLineEscaped

      protected void writeLineEscaped(String str)
    • resetIndent

      protected void resetIndent()
    • indent

      protected void indent()
    • exdent

      protected void exdent()
    • escapeXML

      public static String escapeXML(String str)
    • unescapeXML

      public static String unescapeXML(String str)
    • splitWithEscape

      public static String[] splitWithEscape(String str, char delim)
    • flushOutputStream

      protected void flushOutputStream()
    • closeOutputStream

      protected void closeOutputStream()
    • writeGenericMapEntry

      protected void writeGenericMapEntry(String name, Object value)
    • writeGeneric

      protected void writeGeneric(Object obj)
    • writeGeneric

      protected void writeGeneric(Map map)
    • writeGeneric

      protected void writeGeneric(List list)
    • writeGeneric

      protected void writeGeneric(byte[] bytes)
    • writeGeneric

      protected void writeGeneric(String str)
    • writeGeneric

      protected void writeGeneric(Long l)
    • writeTag

      protected void writeTag(String tag, byte[] content)
    • writeLocalisableTag

      protected void writeLocalisableTag(String tag, byte[] content)
    • encodeBytes

      protected String encodeBytes(byte[] bytes)