public abstract class OutputSerializer extends Serializer
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(byte[] n,
byte[] v)
Serializes an attribute.
|
void |
close()
Closes the serializer.
|
void |
closeResult()
Closes a result.
|
void |
finishAtomic(Item it)
Serializes an item.
|
protected void |
finishClose()
Closes an element.
|
void |
finishComment(byte[] n)
Serializes a comment.
|
boolean |
finished()
Tests if the serialization was interrupted.
|
protected void |
finishEmpty()
Closes an empty element.
|
protected void |
finishOpen()
Finishes an opening element node.
|
void |
finishPi(byte[] n,
byte[] v)
Serializes a processing instruction.
|
void |
finishText(byte[] b)
Serializes a text.
|
void |
finishText(byte[] b,
FTPos ftp)
Serializes a text.
|
void |
openResult()
Starts a result.
|
void |
reset()
Resets the serializer (indentation, etc).
|
protected void |
startOpen(byte[] t)
Starts an element.
|
atomic, closeElement, comment, emptyElement, emptyElement, get, get, namespace, node, node, openElement, openElement, pi, textpublic final void reset()
Serializerreset in class Serializerpublic void close()
throws java.io.IOException
Serializerclose in class Serializerjava.io.IOException - I/O exceptionpublic void openResult()
throws java.io.IOException
SerializeropenResult in class Serializerjava.io.IOException - I/O exceptionpublic void closeResult()
throws java.io.IOException
SerializercloseResult in class Serializerjava.io.IOException - I/O exceptionpublic void attribute(byte[] n,
byte[] v)
throws java.io.IOException
Serializerattribute in class Serializern - namev - valuejava.io.IOException - I/O exceptionpublic void finishText(byte[] b)
throws java.io.IOException
SerializerfinishText in class Serializerb - valuejava.io.IOException - I/O exceptionpublic void finishText(byte[] b,
FTPos ftp)
throws java.io.IOException
Serializerb - valueftp - full-text positions, used for visualization highlightingjava.io.IOException - I/O exceptionpublic void finishComment(byte[] n)
throws java.io.IOException
SerializerfinishComment in class Serializern - valuejava.io.IOException - I/O exceptionpublic void finishPi(byte[] n,
byte[] v)
throws java.io.IOException
SerializerfinishPi in class Serializern - namev - valuejava.io.IOException - I/O exceptionpublic void finishAtomic(Item it) throws java.io.IOException
SerializerfinishAtomic in class Serializerit - itemjava.io.IOException - I/O exceptionpublic final boolean finished()
Serializerfinished in class Serializerprotected void startOpen(byte[] t)
throws java.io.IOException
SerializerstartOpen in class Serializert - tag namejava.io.IOException - I/O exceptionprotected void finishOpen()
throws java.io.IOException
SerializerfinishOpen in class Serializerjava.io.IOException - I/O exceptionprotected void finishEmpty()
throws java.io.IOException
SerializerfinishEmpty in class Serializerjava.io.IOException - I/O exceptionprotected void finishClose()
throws java.io.IOException
SerializerfinishClose in class Serializerjava.io.IOException - I/O exception