public final class CsvDirectSerializer extends StandardSerializer
atomic, form, map, sep
itemsep, out, sopts
Constructor and Description |
---|
CsvDirectSerializer(PrintOutput out,
SerializerOptions opts)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
atomic(Item value)
Serializes an atomic value.
|
protected void |
attribute(byte[] name,
byte[] value,
boolean standalone)
Serializes an attribute.
|
protected void |
finishClose()
Closes an element.
|
protected void |
finishEmpty()
Closes an empty element.
|
protected void |
startOpen(byte[] name)
Starts an element.
|
protected void |
text(byte[] value,
FTPos ftp)
Serializes a text.
|
encode, function, node, norm, printChar, printChars, reset, serialize
close, finished, indent, itemsep, newline
closeDoc, closeElement, comment, finishOpen, get, get, ignore, namespace, nsUri, openDoc, openElement, pi
public CsvDirectSerializer(PrintOutput out, SerializerOptions opts) throws IOException
out
- print outputopts
- serialization parametersIOException
- I/O exceptionprotected void startOpen(byte[] name)
Serializer
startOpen
in class Serializer
name
- element nameprotected void finishEmpty() throws IOException
Serializer
finishEmpty
in class Serializer
IOException
- I/O exceptionprotected void text(byte[] value, FTPos ftp) throws IOException
Serializer
text
in class Serializer
value
- valueftp
- full-text positions, used for visualization highlightingIOException
- I/O exceptionprotected void finishClose() throws IOException
Serializer
finishClose
in class Serializer
IOException
- I/O exceptionprotected void attribute(byte[] name, byte[] value, boolean standalone)
Serializer
attribute
in class Serializer
name
- namevalue
- valuestandalone
- standalone flagprotected void atomic(Item value) throws IOException
Serializer
atomic
in class StandardSerializer
value
- itemIOException
- I/O exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.