public interface ProtoStreamReader extends ProtoStreamOperation, org.infinispan.protostream.TagReader
TagReader with the additional ability to read an arbitrary embedded object.ProtoStreamOperation.Context| Modifier and Type | Method and Description |
|---|---|
default ProtoStreamOperation.Context |
getContext() |
default Object |
readAny()
Reads an object of an arbitrary type from this reader.
|
default <T> T |
readAny(Class<T> targetClass)
Reads an object of an arbitrary type from this reader, cast to the specified type.
|
default <E extends Enum<E>> |
readEnum(Class<E> enumClass)
Reads an num of the specified type from this reader.
|
int |
readFixed32()
Deprecated.
Use
TagReader.readSFixed32() instead. |
long |
readFixed64()
Deprecated.
Use
TagReader.readSFixed64() instead. |
int |
readInt32()
Deprecated.
Use
TagReader.readUInt32() or TagReader.readSInt32() |
long |
readInt64()
Deprecated.
Use
TagReader.readUInt64() or TagReader.readSInt64() |
<T> T |
readObject(Class<T> targetClass)
Reads an object of the specified type from this reader.
|
findMarshaller, getSerializationContextdefault ProtoStreamOperation.Context getContext()
default Object readAny() throws IOException
IOException - if the object could not be read with the associated marshaller.default <T> T readAny(Class<T> targetClass) throws IOException
the - expected typeIOException - if the object could not be read with the associated marshaller.<T> T readObject(Class<T> targetClass) throws IOException
T - the type of the associated marshallertargetClass - the class of the associated marshallerIOException - if no marshaller is associated with the specified class, or if the object could not be read with the associated marshaller.default <E extends Enum<E>> E readEnum(Class<E> enumClass) throws IOException
T - the type of the associated marshallertargetClass - the class of the associated marshallerIOException - if no marshaller is associated with the specified enum class, or if the enum could not be read with the associated marshaller.@Deprecated int readInt32() throws IOException
TagReader.readUInt32() or TagReader.readSInt32()readInt32 in interface org.infinispan.protostream.RawProtoStreamReaderreadInt32 in interface org.infinispan.protostream.TagReaderIOException@Deprecated int readFixed32() throws IOException
TagReader.readSFixed32() instead.readFixed32 in interface org.infinispan.protostream.RawProtoStreamReaderreadFixed32 in interface org.infinispan.protostream.TagReaderIOException@Deprecated long readInt64() throws IOException
TagReader.readUInt64() or TagReader.readSInt64()readInt64 in interface org.infinispan.protostream.RawProtoStreamReaderreadInt64 in interface org.infinispan.protostream.TagReaderIOException@Deprecated long readFixed64() throws IOException
TagReader.readSFixed64() instead.readFixed64 in interface org.infinispan.protostream.RawProtoStreamReaderreadFixed64 in interface org.infinispan.protostream.TagReaderIOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.