Package org.kxml2.io

Class KXmlSerializer

java.lang.Object
org.kxml2.io.KXmlSerializer
All Implemented Interfaces:
org.xmlpull.v1.XmlSerializer

public class KXmlSerializer extends Object implements org.xmlpull.v1.XmlSerializer
  • Constructor Details

    • KXmlSerializer

      public KXmlSerializer()
  • Method Details

    • docdecl

      public void docdecl(String dd) throws IOException
      Specified by:
      docdecl in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • endDocument

      public void endDocument() throws IOException
      Specified by:
      endDocument in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • entityRef

      public void entityRef(String name) throws IOException
      Specified by:
      entityRef in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • getFeature

      public boolean getFeature(String name)
      Specified by:
      getFeature in interface org.xmlpull.v1.XmlSerializer
    • getPrefix

      public String getPrefix(String namespace, boolean create)
      Specified by:
      getPrefix in interface org.xmlpull.v1.XmlSerializer
    • getProperty

      public Object getProperty(String name)
      Specified by:
      getProperty in interface org.xmlpull.v1.XmlSerializer
    • ignorableWhitespace

      public void ignorableWhitespace(String s) throws IOException
      Specified by:
      ignorableWhitespace in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • setFeature

      public void setFeature(String name, boolean value)
      Specified by:
      setFeature in interface org.xmlpull.v1.XmlSerializer
    • setProperty

      public void setProperty(String name, Object value)
      Specified by:
      setProperty in interface org.xmlpull.v1.XmlSerializer
    • setPrefix

      public void setPrefix(String prefix, String namespace) throws IOException
      Specified by:
      setPrefix in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • setOutput

      public void setOutput(Writer writer)
      Specified by:
      setOutput in interface org.xmlpull.v1.XmlSerializer
    • setOutput

      public void setOutput(OutputStream os, String encoding) throws IOException
      Specified by:
      setOutput in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • startDocument

      public void startDocument(String encoding, Boolean standalone) throws IOException
      Specified by:
      startDocument in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • startTag

      public org.xmlpull.v1.XmlSerializer startTag(String namespace, String name) throws IOException
      Specified by:
      startTag in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • attribute

      public org.xmlpull.v1.XmlSerializer attribute(String namespace, String name, String value) throws IOException
      Specified by:
      attribute in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • endTag

      public org.xmlpull.v1.XmlSerializer endTag(String namespace, String name) throws IOException
      Specified by:
      endTag in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface org.xmlpull.v1.XmlSerializer
    • getName

      public String getName()
      Specified by:
      getName in interface org.xmlpull.v1.XmlSerializer
    • getDepth

      public int getDepth()
      Specified by:
      getDepth in interface org.xmlpull.v1.XmlSerializer
    • text

      public org.xmlpull.v1.XmlSerializer text(String text) throws IOException
      Specified by:
      text in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • text

      public org.xmlpull.v1.XmlSerializer text(char[] text, int start, int len) throws IOException
      Specified by:
      text in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • cdsect

      public void cdsect(String data) throws IOException
      Specified by:
      cdsect in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • comment

      public void comment(String comment) throws IOException
      Specified by:
      comment in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException
    • processingInstruction

      public void processingInstruction(String pi) throws IOException
      Specified by:
      processingInstruction in interface org.xmlpull.v1.XmlSerializer
      Throws:
      IOException