public class Decoder
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
Decoder |
charset(java.lang.String encoding) |
void |
close() |
protected java.lang.Object |
decode(java.lang.reflect.Type clazz) |
byte[] |
digest() |
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> type) |
java.util.Map<java.lang.String,java.lang.Object> |
getExtra() |
Decoder |
inflate() |
java.lang.Object |
instantiate(java.lang.Class<?> rawClass) |
<T> Decoder |
instantiator(java.util.function.Function<java.lang.Class<T>,T> instantiator) |
boolean |
isEof() |
boolean |
isLog() |
Decoder |
keepOpen() |
Decoder |
log(boolean on) |
void |
log(java.lang.String format,
java.lang.Object... args) |
Decoder |
mark() |
Decoder |
resolve() |
Decoder |
strict() |
public Decoder from(java.io.File file) throws java.lang.Exception
java.lang.Exceptionpublic Decoder from(java.io.InputStream in) throws java.lang.Exception
java.lang.Exceptionpublic Decoder from(byte[] data) throws java.lang.Exception
java.lang.Exceptionpublic Decoder charset(java.lang.String encoding)
public Decoder strict()
public Decoder from(java.io.Reader in) throws java.lang.Exception
java.lang.Exceptionpublic Decoder faq(java.lang.String in) throws java.lang.Exception
java.lang.Exceptionpublic Decoder from(java.lang.String in) throws java.lang.Exception
java.lang.Exceptionpublic Decoder mark() throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmExceptionpublic byte[] digest()
public <T> T get(java.lang.Class<T> clazz)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.Object decode(java.lang.reflect.Type clazz)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object get(java.lang.reflect.Type type)
throws java.lang.Exception
java.lang.Exceptionpublic <T> T get(TypeReference<T> type) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object get()
throws java.lang.Exception
java.lang.Exceptionpublic Decoder keepOpen()
public boolean isEof()
throws java.lang.Exception
java.lang.Exceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic java.util.Map<java.lang.String,java.lang.Object> getExtra()
public Decoder inflate()
public Decoder resolve()
public <T> Decoder instantiator(java.util.function.Function<java.lang.Class<T>,T> instantiator)
public java.lang.Object instantiate(java.lang.Class<?> rawClass)
throws java.lang.Exception
java.lang.Exceptionpublic boolean isLog()
public Decoder log(boolean on)
public void log(java.lang.String format,
java.lang.Object... args)
aQute SARL