public class Decoder
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
(package private) JSONCodec |
codec |
(package private) int |
current |
(package private) java.security.MessageDigest |
digest |
(package private) java.nio.charset.Charset |
encoding |
(package private) java.util.Map<java.lang.String,java.lang.Object> |
extra |
(package private) boolean |
inflate |
(package private) boolean |
keepOpen |
(package private) java.io.Reader |
reader |
(package private) boolean |
strict |
Modifier and Type | Method and Description |
---|---|
Decoder |
charset(java.nio.charset.Charset encoding) |
Decoder |
charset(java.lang.String encoding) |
void |
close() |
(package private) int |
current() |
byte[] |
digest() |
(package private) void |
expect(java.lang.String s) |
Decoder |
faq(java.lang.String in) |
Decoder |
from(byte[] data) |
Decoder |
from(java.io.File file) |
Decoder |
from(java.io.InputStream in) |
Decoder |
from(java.io.Reader in) |
Decoder |
from(java.lang.String in) |
java.lang.Object |
get() |
<T> T |
get(java.lang.Class<T> clazz) |
java.lang.Object |
get(java.lang.reflect.Type type) |
<T> T |
get(TypeReference<T> ref) |
java.util.Map<java.lang.String,java.lang.Object> |
getExtra() |
Decoder |
inflate() |
boolean |
isEof() |
Decoder |
keepOpen() |
Decoder |
mark() |
(package private) int |
next()
Skip any whitespace.
|
(package private) int |
read() |
(package private) int |
skipWs()
Skip any whitespace.
|
Decoder |
strict() |
final JSONCodec codec
java.io.Reader reader
int current
java.security.MessageDigest digest
java.util.Map<java.lang.String,java.lang.Object> extra
java.nio.charset.Charset encoding
boolean strict
boolean inflate
boolean keepOpen
Decoder(JSONCodec codec)
public Decoder from(java.io.File file) throws java.lang.Exception
java.lang.Exception
public Decoder from(java.io.InputStream in) throws java.lang.Exception
java.lang.Exception
public Decoder from(byte[] data) throws java.lang.Exception
java.lang.Exception
public Decoder charset(java.lang.String encoding)
public Decoder charset(java.nio.charset.Charset encoding)
public Decoder strict()
public Decoder from(java.io.Reader in) throws java.lang.Exception
java.lang.Exception
public Decoder faq(java.lang.String in) throws java.lang.Exception
java.lang.Exception
public Decoder from(java.lang.String in) throws java.lang.Exception
java.lang.Exception
public Decoder mark() throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public byte[] digest()
public <T> T get(java.lang.Class<T> clazz) throws java.lang.Exception
java.lang.Exception
public java.lang.Object get(java.lang.reflect.Type type) throws java.lang.Exception
java.lang.Exception
public java.lang.Object get() throws java.lang.Exception
java.lang.Exception
public <T> T get(TypeReference<T> ref) throws java.lang.Exception
java.lang.Exception
public Decoder keepOpen()
int read() throws java.lang.Exception
java.lang.Exception
int current()
int skipWs() throws java.lang.Exception
java.lang.Exception
int next() throws java.lang.Exception
java.lang.Exception
void expect(java.lang.String s) throws java.lang.Exception
java.lang.Exception
public boolean isEof() throws java.lang.Exception
java.lang.Exception
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public java.util.Map<java.lang.String,java.lang.Object> getExtra()
public Decoder inflate()