Package org.apache.juneau.marshall.csv
Class CsvCellSerializer
java.lang.Object
org.apache.juneau.marshall.csv.CsvCellSerializer
Serializes nested objects and arrays to CSV cell inline notation:
{key:val;key2:val2} and [val1;val2;val3].
Used when allowNestedStructures() is enabled on the serializer.
-
Constructor Summary
ConstructorsConstructorDescriptionCsvCellSerializer(CsvByteArrayCellFormat byteArrayFormat, String nullMarker) Creates a new serializer. -
Method Summary
Modifier and TypeMethodDescriptionwrite(Object value, CsvSerializerSession session) Serializes a value to inline notation.
-
Constructor Details
-
CsvCellSerializer
Creates a new serializer.- Parameters:
byteArrayFormat- Format for byte[] values.
Can benull (defaults toCsvByteArrayCellFormat.BASE64).nullMarker- String to use for null values.
Can benull (defaults tonull).
-
-
Method Details
-
write
Serializes a value to inline notation.- Parameters:
value- The value to serialize.
Can benull (serialized as the null marker).session- The serializer session (for bean conversion, date formatting, etc.).
Must not benull .- Returns:
- The serialized string.
-