Class JsonValueReader<T>
- java.lang.Object
-
- java.io.Reader
-
- org.apache.johnzon.jsonb.extension.JsonValueReader<T>
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
,java.util.function.Supplier<javax.json.JsonStructure>
public class JsonValueReader<T> extends java.io.Reader implements java.util.function.Supplier<javax.json.JsonStructure>
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.ByteArrayInputStream
fallbackDelegate
private javax.json.JsonStructure
input
private T
result
-
Constructor Summary
Constructors Constructor Description JsonValueReader(javax.json.JsonStructure input)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
javax.json.JsonStructure
get()
javax.json.JsonStructure
getInput()
Deprecated.T
getResult()
Deprecated.int
read(char[] cbuf, int off, int len)
void
setResult(T result)
Deprecated.
-
-
-
Field Detail
-
input
private final javax.json.JsonStructure input
-
fallbackDelegate
private java.io.ByteArrayInputStream fallbackDelegate
-
result
private T result
-
-
Method Detail
-
read
public int read(char[] cbuf, int off, int len)
- Specified by:
read
in classjava.io.Reader
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.io.Reader
- Throws:
java.io.IOException
-
get
public javax.json.JsonStructure get()
- Specified by:
get
in interfacejava.util.function.Supplier<T>
-
getInput
@Deprecated public javax.json.JsonStructure getInput()
Deprecated.
-
getResult
@Deprecated public T getResult()
Deprecated.
-
setResult
@Deprecated public void setResult(T result)
Deprecated.
-
-