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