Package org.basex.io.serial.csv
Class CsvDirectSerializer
java.lang.Object
org.basex.io.serial.Serializer
org.basex.io.serial.OutputSerializer
org.basex.io.serial.StandardSerializer
org.basex.io.serial.csv.CsvDirectSerializer
- All Implemented Interfaces:
Closeable,AutoCloseable
This class serializes items as CSV.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields inherited from class org.basex.io.serial.StandardSerializer
atomic, form, sepFields inherited from class org.basex.io.serial.OutputSerializer
encoding, itemsep, out, sopts -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidSerializes an atomic value.protected voidattribute(byte[] name, byte[] value, boolean standalone) Serializes an attribute.protected voidCloses an element.protected voidCloses an empty element.protected voidStarts an element.protected voidSerializes a text.Methods inherited from class org.basex.io.serial.StandardSerializer
characterMap, function, node, norm, print, printChar, reset, serializeMethods inherited from class org.basex.io.serial.OutputSerializer
close, finished, indent, printChars, printHex, separateMethods inherited from class org.basex.io.serial.Serializer
closeDoc, closeElement, comment, finishOpen, get, get, namespace, nsUri, openDoc, openElement, pi, sc, skipElement, value
-
Constructor Details
-
CsvDirectSerializer
Constructor.- Parameters:
os- output streamopts- serialization parameters- Throws:
IOException- I/O exception
-
-
Method Details
-
startOpen
Description copied from class:SerializerStarts an element.- Overrides:
startOpenin classSerializer- Parameters:
name- element name
-
finishEmpty
Description copied from class:SerializerCloses an empty element.- Overrides:
finishEmptyin classSerializer- Throws:
IOException- I/O exception
-
text
Description copied from class:SerializerSerializes a text.- Overrides:
textin classSerializer- Parameters:
value- valueftp- full-text positions, used for visualization highlighting- Throws:
IOException- I/O exception
-
finishClose
Description copied from class:SerializerCloses an element.- Overrides:
finishClosein classSerializer- Throws:
IOException- I/O exception
-
attribute
protected void attribute(byte[] name, byte[] value, boolean standalone) Description copied from class:SerializerSerializes an attribute.- Overrides:
attributein classSerializer- Parameters:
name- namevalue- valuestandalone- standalone flag
-
atomic
Description copied from class:SerializerSerializes an atomic value.- Overrides:
atomicin classStandardSerializer- Parameters:
value- item- Throws:
IOException- I/O exception
-