T - the instance type created after parsingpublic interface Parser<T>
| Modifier and Type | Method and Description |
|---|---|
T |
parse(CharSequence input)
Parse the specified character sequence into a Java object.
|
T |
parse(CharSequence input,
int start,
int end)
Parse the specified character sequence with the specified bounds into a Java object.
|
T |
parse(InputStream in)
Parses the specified
InputStream assuming UTF_8 encoding. |
T |
parse(Reader reader)
Parse the specified character sequence into a Java object.
|
T parse(CharSequence input)
input - the character sequence to parse into a Java object.input stream.T parse(CharSequence input, int start, int end)
input - The character sequence, may be nullstart - The start index in the character sequence, inclusiveend - The end index in the character sequence, exclusiveIllegalArgumentException - if the start index is negative, or if the end index is smaller than the start indexT parse(Reader reader)
reader - the reader to use to parse a Java object.input stream.T parse(InputStream in)
InputStream assuming UTF_8 encoding.
This is a convenience alias for:
parse(newInputStreamReader(in,StandardCharsets.UTF_8);
in - the UTF-8 InputStream.InputStream.Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.