public final class JsArrayParser extends Object
Constructor and Description |
---|
JsArrayParser(JsArraySpec spec) |
Modifier and Type | Method and Description |
---|---|
JsArray |
parse(byte[] bytes)
parses an array of bytes into a Json array that must conform the spec of the parser.
|
JsArray |
parse(InputStream inputstream)
parses an input stream of bytes into a Json array that must conform the spec of the parser.
|
JsArray |
parse(String str)
parses a string into a Json array that must conform the spec of the parser.
|
public JsArrayParser(JsArraySpec spec)
spec
- the Json spec what defines the schema that every element in the array has to conformpublic JsArray parse(byte[] bytes)
bytes
- a Json array serialized in an array of bytespublic JsArray parse(String str)
str
- a Json array serialized in a stringpublic JsArray parse(InputStream inputstream)
inputstream
- the input stream of bytesCopyright © 2022. All rights reserved.