|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.hpi.fgis.dude.util.data.storage.InputStreamReadable<T>
T
- The type of instances that shall be read.public class InputStreamReadable<T extends Jsonable>
InputStreamReadable
can be used to read Json data from any InputStream
.
Constructor Summary | |
---|---|
InputStreamReadable(Class<T> type,
InputStream iStream)
Initializes an InputStreamReadable with the passed type information. |
|
InputStreamReadable(InputStream iStream)
Initializes an InputStreamReadable with no type information. |
Method Summary | |
---|---|
JsonableReader<T> |
getReader()
Returns the JsonableReader that can be used to access the content of this DuDeStorage . |
int |
size()
Returns the number of instances that are contained. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputStreamReadable(InputStream iStream)
InputStreamReadable
with no type information. JsonValue
instances will be returned.
iStream
- The InputStream
from which the data will be read.public InputStreamReadable(Class<T> type, InputStream iStream)
InputStreamReadable
with the passed type information.
type
- The type that is used for generating the instances.iStream
- The InputStream
from which the data will be read.Method Detail |
---|
public JsonableReader<T> getReader()
JsonReadable
JsonableReader
that can be used to access the content of this DuDeStorage
.
getReader
in interface JsonReadable<T extends Jsonable>
JsonableReader
for iterating over the content.public int size()
JsonReadable
size
in interface JsonReadable<T extends Jsonable>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |