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 TypeMethodDescriptionvoid
close()
(package private) int
current()
byte[]
digest()
(package private) void
from
(byte[] data) from
(InputStream in) get()
<T> T
get
(TypeReference<T> ref) <T> T
getExtra()
inflate()
boolean
isEof()
keepOpen()
mark()
(package private) int
next()
Skip any whitespace.(package private) int
read()
(package private) int
skipWs()
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getExtra
-
inflate
-