Class OffsetProtoStreamReader
java.lang.Object
org.wildfly.clustering.marshalling.protostream.OffsetProtoStreamReader
- All Implemented Interfaces:
org.infinispan.protostream.RawProtoStreamReader,org.infinispan.protostream.TagReader,ProtoStreamOperation,ProtoStreamReader
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamOperation
ProtoStreamOperation.Context -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckLastTagWas(int tag) <T> FieldSetReader<T>createFieldSetReader(FieldReadable<T> reader, int startIndex) Returns a reader for a field set whose fields start at the specified index.byte[]Returns the context of this operationintReturns the tag of the current field, or optional ifTagReader.readTag()was not yet called for the next field.org.infinispan.protostream.ImmutableSerializationContextReturns the serialization context of the associated marshaller.booleanisAtEnd()booleanvoidpopLimit(int oldLimit) intpushLimit(int limit) readAny()Reads an object of an arbitrary type from this reader.booleanreadBool()byte[]doubleintreadEnum()intDeprecated.longDeprecated.floatintDeprecated.longDeprecated.<T> TreadObject(Class<T> targetClass) Reads an object of the specified type from this reader.intlongintlongintreadTag()intlongbooleanskipField(int tag) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamOperation
findMarshallerMethods inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamReader
readAny, readEnum, skipFieldMethods inherited from interface org.infinispan.protostream.RawProtoStreamReader
readRawVarint32, readRawVarint64
-
Method Details
-
getContext
Description copied from interface:ProtoStreamOperationReturns the context of this operation- Specified by:
getContextin interfaceProtoStreamOperation- Returns:
- the operation context
-
getSerializationContext
public org.infinispan.protostream.ImmutableSerializationContext getSerializationContext()Description copied from interface:ProtoStreamOperationReturns the serialization context of the associated marshaller.- Specified by:
getSerializationContextin interfaceProtoStreamOperation- Returns:
- an immutable serialization context
-
createFieldSetReader
Description copied from interface:ProtoStreamReaderReturns a reader for a field set whose fields start at the specified index.- Specified by:
createFieldSetReaderin interfaceProtoStreamReader- Type Parameters:
T- the field builder type- Parameters:
reader- a field readerstartIndex- the start index for the field set- Returns:
- a field set reader
-
getCurrentTag
public int getCurrentTag()Description copied from interface:ProtoStreamReaderReturns the tag of the current field, or optional ifTagReader.readTag()was not yet called for the next field.- Specified by:
getCurrentTagin interfaceProtoStreamReader- Returns:
-
isAtEnd
- Specified by:
isAtEndin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readTag
- Specified by:
readTagin interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readTagin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
checkLastTagWas
- Specified by:
checkLastTagWasin interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
checkLastTagWasin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
skipField
- Specified by:
skipFieldin interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
skipFieldin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readBool
- Specified by:
readBoolin interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readBoolin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readEnum
- Specified by:
readEnumin interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readEnumin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readString
- Specified by:
readStringin interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readStringin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readByteArray
- Specified by:
readByteArrayin interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readByteArrayin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readByteBuffer
- Specified by:
readByteBufferin interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readByteBufferin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readDoublein interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readFloatin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readUInt64
- Specified by:
readUInt64in interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readUInt64in interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readSInt64
- Specified by:
readSInt64in interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readSInt64in interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readSFixed64
- Specified by:
readSFixed64in interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readSFixed64in interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readUInt32
- Specified by:
readUInt32in interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readUInt32in interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readSInt32
- Specified by:
readSInt32in interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readSInt32in interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readSFixed32
- Specified by:
readSFixed32in interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readSFixed32in interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
pushLimit
- Specified by:
pushLimitin interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
pushLimitin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
popLimit
public void popLimit(int oldLimit) - Specified by:
popLimitin interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
popLimitin interfaceorg.infinispan.protostream.TagReader
-
fullBufferArray
- Specified by:
fullBufferArrayin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
fullBufferInputStream
- Specified by:
fullBufferInputStreamin interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
isInputStream
public boolean isInputStream()- Specified by:
isInputStreamin interfaceorg.infinispan.protostream.TagReader
-
readAny
Description copied from interface:ProtoStreamReaderReads an object of an arbitrary type from this reader.- Specified by:
readAnyin interfaceProtoStreamReader- Returns:
- a supplier of the unmarshalled object
- Throws:
IOException- if the object could not be read with the associated marshaller.
-
readObject
Description copied from interface:ProtoStreamReaderReads an object of the specified type from this reader.- Specified by:
readObjectin interfaceProtoStreamReader- Type Parameters:
T- the type of the associated marshaller- Parameters:
targetClass- the class of the associated marshaller- Returns:
- the unmarshalled object
- Throws:
IOException- if no marshaller is associated with the specified class, or if the object could not be read with the associated marshaller.
-
readInt32
Deprecated.Description copied from interface:ProtoStreamReaderDeprecated to discourage use.- Specified by:
readInt32in interfaceProtoStreamReader- Specified by:
readInt32in interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readInt32in interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readFixed32
Deprecated.Description copied from interface:ProtoStreamReaderDeprecated to discourage use.- Specified by:
readFixed32in interfaceProtoStreamReader- Specified by:
readFixed32in interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readFixed32in interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readInt64
Deprecated.Description copied from interface:ProtoStreamReaderDeprecated to discourage use.- Specified by:
readInt64in interfaceProtoStreamReader- Specified by:
readInt64in interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readInt64in interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-
readFixed64
Deprecated.Description copied from interface:ProtoStreamReaderDeprecated to discourage use.- Specified by:
readFixed64in interfaceProtoStreamReader- Specified by:
readFixed64in interfaceorg.infinispan.protostream.RawProtoStreamReader- Specified by:
readFixed64in interfaceorg.infinispan.protostream.TagReader- Throws:
IOException
-