Package aQute.lib.json
Class Decoder
java.lang.Object
aQute.lib.json.Decoder
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final JSONCodec(package private) int(package private) MessageDigest(package private) Charset(package private) boolean(package private) boolean(package private) Reader(package private) boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()(package private) intcurrent()byte[]digest()(package private) voidfrom(byte[] data) from(InputStream in) get()<T> Tget(TypeReference<T> ref) <T> TgetExtra()inflate()booleanisEof()keepOpen()mark()(package private) intnext()Skip any whitespace.(package private) intread()(package private) intskipWs()Skip any whitespace.strict()
-
Field Details
-
codec
-
reader
Reader reader -
current
int current -
digest
MessageDigest digest -
extra
-
encoding
Charset encoding -
strict
boolean strict -
inflate
boolean inflate -
keepOpen
boolean keepOpen
-
-
Constructor Details
-
Decoder
Decoder(JSONCodec codec)
-
-
Method Details
-
from
- Throws:
Exception
-
from
- Throws:
Exception
-
from
- Throws:
Exception
-
charset
-
charset
-
strict
-
from
- Throws:
Exception
-
faq
- Throws:
Exception
-
from
- Throws:
Exception
-
mark
- Throws:
NoSuchAlgorithmException
-
digest
public byte[] digest() -
get
- Throws:
Exception
-
get
- Throws:
Exception
-
get
- Throws:
Exception
-
get
- Throws:
Exception
-
keepOpen
-
read
- Throws:
Exception
-
current
int current() -
skipWs
Skip any whitespace.- Throws:
Exception
-
next
Skip any whitespace.- Throws:
Exception
-
expect
- Throws:
Exception
-
isEof
- Throws:
Exception
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getExtra
-
inflate
-