Package org.apache.juneau.marshall.csv
Class CsvCellParser
java.lang.Object
org.apache.juneau.marshall.csv.CsvCellParser
Parses CSV cell inline notation:
{key:val;key2:val2} and [val1;val2;val3].
Grammar (CSV-specific, semicolon-separated):
- Object:
\{ (key ':' value (';' key ':' value)*)? \} - Array:
\[ (value (';' value)*)? \] - Values: object | array | quoted string | number | identifier | null
Notes:
- Reserved characters:
; : \{ \} [ ] " \
-
Method Summary
-
Method Details
-
read
Parses a cell value string into a Map, List, or scalar.- Parameters:
cell- The cell string (e.g.{a:1;b:2}or[1;2;3]).
Can benull (returnsnull ).nullMarker- The string that denotes null (e.g.<NULL>ornull).
Can benull (defaults tonull).- Returns:
- Parsed object: Map, List, String, Number, Boolean, or null.
- Throws:
ParseException- If the input is invalid.
-