org.basex.io.serial
Class RawSerializer

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

public final class RawSerializer
extends TextSerializer

This class serializes data in its internal format: no indentation and entity coding takes place, binary data is directly output as raw data, and all nodes except for text nodes are skipped.

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 it)
          Serializes an atomic value.
protected  void code(int ch)
          Encodes the specified character before printing it.
 
Methods inherited from class org.basex.io.serial.TextSerializer
attribute, finishClose, finishComment, finishEmpty, finishOpen, finishPi, startOpen
 
Methods inherited from class org.basex.io.serial.OutputSerializer
close, closeResult, ct, doctype, finished, finishText, 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

atomic

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

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

code

protected void code(int ch)
             throws java.io.IOException
Description copied from class: OutputSerializer
Encodes the specified character before printing it.

Overrides:
code in class TextSerializer
Parameters:
ch - character to be encoded and printed
Throws:
java.io.IOException - I/O exception