org.basex.io.serial
Class XMLSerializer

java.lang.Object
  extended by org.basex.io.serial.Serializer
      extended by org.basex.io.serial.OutputSerializer
          extended by org.basex.io.serial.XMLSerializer

public class XMLSerializer
extends OutputSerializer

This class serializes data as XML.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.io.serial.OutputSerializer
content, ct, docsys, escape, html5, indents, isep, nl, out, saomit, script, sep, tab
 
Fields inherited from class org.basex.io.serial.Serializer
elem, indent, level, PROPS, tags, undecl
 
Method Summary
protected  void atomic(Item i)
          Serializes an atomic value.
protected  void finishText(byte[] v)
          Serializes a text.
protected  void startOpen(byte[] t)
          Starts an element.
 
Methods inherited from class org.basex.io.serial.OutputSerializer
attribute, close, closeResult, code, ct, doctype, finishClose, finishComment, finished, finishEmpty, finishOpen, finishPi, finishText, hex, indent, openDoc, openResult, print, print, print, printChar, reset
 
Methods inherited from class org.basex.io.serial.Serializer
closeDoc, closeElement, get, get, namespace, nsUri, serialize, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

startOpen

protected void startOpen(byte[] t)
                  throws java.io.IOException
Description copied from class: Serializer
Starts an element.

Overrides:
startOpen in class OutputSerializer
Parameters:
t - tag name
Throws:
java.io.IOException - I/O exception

finishText

protected void finishText(byte[] v)
                   throws java.io.IOException
Description copied from class: Serializer
Serializes a text.

Overrides:
finishText in class OutputSerializer
Parameters:
v - value
Throws:
java.io.IOException - I/O exception

atomic

protected void atomic(Item i)
               throws java.io.IOException
Description copied from class: Serializer
Serializes an atomic value.

Overrides:
atomic in class OutputSerializer
Parameters:
i - item
Throws:
java.io.IOException - I/O exception