Package io.activej.codec.binary
Class BinaryStructuredInput
java.lang.Object
io.activej.codec.binary.BinaryStructuredInput
- All Implemented Interfaces:
StructuredInput
public final class BinaryStructuredInput extends Object implements StructuredInput
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.activej.codec.StructuredInput
StructuredInput.DecoderRunnable, StructuredInput.Token -
Constructor Summary
Constructors Constructor Description BinaryStructuredInput(ByteBuf buf) -
Method Summary
Modifier and Type Method Description EnumSet<StructuredInput.Token>getNext()booleanhasNext()booleanreadBoolean()bytereadByte()byte[]readBytes()<T> TreadCustom(Type type)doublereadDouble()floatreadFloat()intreadInt()intreadInt32()StringreadKey()<T> List<T>readList(StructuredDecoder<T> decoder)longreadLong()longreadLong64()<K, V> Map<K,V>readMap(StructuredDecoder<K> keyDecoder, StructuredDecoder<V> valueDecoder)voidreadNull()<T> TreadNullable(StructuredDecoder<T> decoder)<T> TreadObject(StructuredDecoder<T> decoder)StringreadString()<T> TreadTuple(StructuredDecoder<T> decoder)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.codec.StructuredInput
readKey, readKey, readObject, readTuple
-
Constructor Details
-
BinaryStructuredInput
-
-
Method Details
-
readBoolean
- Specified by:
readBooleanin interfaceStructuredInput- Throws:
MalformedDataException
-
readByte
- Specified by:
readBytein interfaceStructuredInput- Throws:
MalformedDataException
-
readInt
- Specified by:
readIntin interfaceStructuredInput- Throws:
MalformedDataException
-
readLong
- Specified by:
readLongin interfaceStructuredInput- Throws:
MalformedDataException
-
readInt32
- Specified by:
readInt32in interfaceStructuredInput- Throws:
MalformedDataException
-
readLong64
- Specified by:
readLong64in interfaceStructuredInput- Throws:
MalformedDataException
-
readFloat
- Specified by:
readFloatin interfaceStructuredInput- Throws:
MalformedDataException
-
readDouble
- Specified by:
readDoublein interfaceStructuredInput- Throws:
MalformedDataException
-
readBytes
- Specified by:
readBytesin interfaceStructuredInput- Throws:
MalformedDataException
-
readString
- Specified by:
readStringin interfaceStructuredInput- Throws:
MalformedDataException
-
readNull
- Specified by:
readNullin interfaceStructuredInput- Throws:
MalformedDataException
-
readNullable
- Specified by:
readNullablein interfaceStructuredInput- Throws:
MalformedDataException
-
readList
- Specified by:
readListin interfaceStructuredInput- Throws:
MalformedDataException
-
readMap
public <K, V> Map<K,V> readMap(StructuredDecoder<K> keyDecoder, StructuredDecoder<V> valueDecoder) throws MalformedDataException- Specified by:
readMapin interfaceStructuredInput- Throws:
MalformedDataException
-
readTuple
- Specified by:
readTuplein interfaceStructuredInput- Throws:
MalformedDataException
-
readObject
- Specified by:
readObjectin interfaceStructuredInput- Throws:
MalformedDataException
-
hasNext
- Specified by:
hasNextin interfaceStructuredInput- Throws:
MalformedDataException
-
readKey
- Specified by:
readKeyin interfaceStructuredInput- Throws:
MalformedDataException
-
readCustom
- Specified by:
readCustomin interfaceStructuredInput- Throws:
MalformedDataException
-
getNext
- Specified by:
getNextin interfaceStructuredInput- Throws:
MalformedDataException
-