|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.io.serial.Serializer
org.basex.io.serial.OutputSerializer
org.basex.io.serial.TextSerializer
public class TextSerializer
This class serializes data as text.
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 |
attribute(byte[] n,
byte[] v)
Serializes an attribute. |
protected void |
code(int ch)
Encodes the specified character before printing it. |
protected void |
finishClose()
Closes an element. |
protected void |
finishComment(byte[] n)
Serializes a comment. |
protected void |
finishEmpty()
Closes an empty element. |
protected void |
finishOpen()
Finishes an opening element node. |
protected void |
finishPi(byte[] n,
byte[] v)
Serializes a processing instruction. |
protected void |
startOpen(byte[] t)
Starts an element. |
Methods inherited from class org.basex.io.serial.OutputSerializer |
---|
atomic, 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 |
---|
protected void attribute(byte[] n, byte[] v) throws java.io.IOException
Serializer
attribute
in class OutputSerializer
n
- namev
- value
java.io.IOException
- I/O exceptionprotected void finishComment(byte[] n) throws java.io.IOException
Serializer
finishComment
in class OutputSerializer
n
- value
java.io.IOException
- I/O exceptionprotected void finishPi(byte[] n, byte[] v) throws java.io.IOException
Serializer
finishPi
in class OutputSerializer
n
- namev
- value
java.io.IOException
- I/O exceptionprotected void startOpen(byte[] t) throws java.io.IOException
Serializer
startOpen
in class OutputSerializer
t
- tag name
java.io.IOException
- I/O exceptionprotected void finishOpen() throws java.io.IOException
Serializer
finishOpen
in class OutputSerializer
java.io.IOException
- I/O exceptionprotected void finishEmpty() throws java.io.IOException
Serializer
finishEmpty
in class OutputSerializer
java.io.IOException
- I/O exceptionprotected void finishClose() throws java.io.IOException
Serializer
finishClose
in class OutputSerializer
java.io.IOException
- I/O exceptionprotected void code(int ch) throws java.io.IOException
OutputSerializer
code
in class OutputSerializer
ch
- character to be encoded and printed
java.io.IOException
- I/O exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |