A streaming parser for Bson values
A streaming parser for Bson values
This supports types 1 (Float), 2 (String), 3 (Document), 4 (Array), 8 (Boolean), 10 (Null), 16 (Int32) and 18 (Int64). Other types are unsupported.
4.0
A parser that will decode cbor data.
A parser that will decode cbor data.
This does not support
tags are handled via the tagMatcher
constructor parameter. By default, it can handle tags (2,3,4,5,30,55799).
4.0
A BuilderFailureExtra that provides a location in a text document
A BuilderFailureExtra that provides a location in a text document
4.0
A class that wraps a Reader and provides both a single-char buffer and a count of how many characters have been read
A class that wraps a Reader and provides both a single-char buffer and a count of how many characters have been read
4.0
3.1
A streaming decoder for csv data.
A streaming decoder for csv data.
This parser is lenient, in that it ignores trailing delimiters
A CSV file is always two levels deep - a two dimensional array.
4.0
A streaming decoder for csv data, where the first line of the csv data is a header row.
A streaming decoder for csv data, where the first line of the csv data is a header row.
This parser is lenient, in that it ignores trailing delimiters
A CSV file is always two levels deep, an array of key-value mappings.
4.0
A 'parser' that echos the value provided in its parse method
A 'parser' that echos the value provided in its parse method
Somewhat useful to be the 'recursed' parser in cases where the 'root' parser has already decoded a value.
4.0
A streaming decoder for json data.
A streaming decoder for json data. This parser is intended to be relatively strict.
4.0
A parser that reads each key-value pair from a Map
A parser that reads each key-value pair from a Map
the type of keys contained in the Map
the type of values contained in the Map
4.0
An object that parses an input into a sequence of key-value pairs for the purpose of inserting those key-value pairs into a Builder
An object that parses an input into a sequence of key-value pairs for the purpose of inserting those key-value pairs into a Builder
the key types
the primitive value types
possible ways this parser can fail
extra data that this parser provides to Builder Failures
the input to the parser
4.0
3.0
A parser which can be built piecewise
A parser which can be built piecewise
the key types
the primitive value types
the input to the parser
case class Foo(a:String, b:Seq[String], c:String) val fooParser = new PiecewiseParser[StringOrInt, String, Foo]( PiecewiseParser.primitiveKeyDef("a", {x => x.a}), PiecewiseParser.complexKeyDef("b", {x => x.b}, new PrimitiveSeqParser[String].mapKey[StringOrInt]), PiecewiseParser.optionalKeyDef(PiecewiseParser.primitiveKeyDef("c", {x => x.c}), {x => x.c != ""}) ) val jsonBuilder = new PrettyJsonBuilder(PrettyJsonBuilder.MinifiedPrettyParams).mapValue[String] fooParser.parse(jsonbuilder, Foo("", Seq.empty, "")) // results in `{"a":"","b":[]}` fooParser.parse(jsonbuilder, Foo("qwer", Seq("z","x","c"), "asdf")) // results in `{"a":"qwer","b":["z","x","c"],"c":"asdf"}`
4.0
3.0
A parser that reads each Value and its index from a Seq
A parser that reads each Value and its index from a Seq
the type of values contained in the Seq
4.0
A parser that can parse the results of recursive MapBuilder builds
A parser that can parse the results of recursive MapBuilder builds
the type of keys contained in the Map
the primitive values contained in the Map
4.0
3.1
A parser that reads and parses each Value and its index from a Seq
A parser that reads and parses each Value and its index from a Seq
the type of key used by recurse
the type of primitiveValue used by recurse
the type of values contained in the Seq
4.0
Objects related to Cbor's data model
Objects related to Cbor's data model
3.0
Contains classes used to customize the CsvParser's behavior, as well as a few common instances of those classes.
Contains classes used to customize the CsvParser's behavior, as well as a few common instances of those classes.
3.0.1
2.0
IdentityParser factory methods
IdentityParser factory methods
3.1
KeyDef and implementations
KeyDef and implementations
3.0
Contains the various built-in parsers
Most built-in parsers either parse a serialized form (json, cbor, csv), parse from a generic collection class (seq, map) or parse a class that conforms to a stereotype (case class)