public class ValueReader
extends java.lang.Object
Constructor and Description |
---|
ValueReader() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
read(ProtocolReader reader)
Read data with a ProtocolReader and extract all the data from the readers source
|
java.lang.Object[] |
readArray(ProtocolReader reader)
Read all the data from readers source and extract it to an Object array
|
java.util.List<?> |
readList(ProtocolReader reader)
Read all the data from a readers source and extract it as a List
|
java.util.Map<java.lang.String,?> |
readObject(ProtocolReader reader)
Read the data from a readers source and extract it to a Map
|
public java.lang.Object read(ProtocolReader reader) throws java.io.IOException
reader
- a reader which should read from its source to extract the datajava.io.IOException
- on failed IO operationspublic java.util.Map<java.lang.String,?> readObject(ProtocolReader reader) throws java.io.IOException
reader
- the ProtocolReader from which the data can be extractedjava.io.IOException
- on failed IO operationspublic java.lang.Object[] readArray(ProtocolReader reader) throws java.io.IOException
reader
- ProtocolReader from the source of which data will be extractedjava.io.IOException
- on failed IO operationspublic java.util.List<?> readList(ProtocolReader reader) throws java.io.IOException
reader
- ProtocolReader from the source of which data will be extractedjava.io.IOException
- on failed IO operations