Package org.infinispan.marshall.core
Class AbstractBytesObjectInput
java.lang.Object
org.infinispan.marshall.core.AbstractBytesObjectInput
- All Implemented Interfaces:
DataInput,ObjectInput,AutoCloseable
Array backed
ObjectInput implementation.
skip(long) and skipBytes(int) have been enhanced so that
if a negative number is passed in, they skip backwards effectively
providing rewind capabilities.
This should be removed when the GlobalMarshaller is no longer based on StreamingMarshaller.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()intread()intread(byte[] b) intread(byte[] b, int off, int len) booleanbytereadByte()charreadChar()doublefloatvoidreadFully(byte[] b) voidreadFully(byte[] b, int off, int len) intreadInt()readLine()longreadLong()shortintintreadUTF()longskip(long n) intskipBytes(int n) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.ObjectInput
readObject
-
Constructor Details
-
AbstractBytesObjectInput
protected AbstractBytesObjectInput(byte[] bytes, int offset)
-
-
Method Details
-
read
public int read()- Specified by:
readin interfaceObjectInput
-
read
public int read(byte[] b) - Specified by:
readin interfaceObjectInput
-
read
public int read(byte[] b, int off, int len) - Specified by:
readin interfaceObjectInput
-
skip
public long skip(long n) - Specified by:
skipin interfaceObjectInput
-
available
public int available()- Specified by:
availablein interfaceObjectInput
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceObjectInput
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
EOFException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
EOFException
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
EOFException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
EOFException
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
EOFException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
EOFException
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
EOFException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
EOFException
-
readChar
- Specified by:
readCharin interfaceDataInput- Throws:
EOFException
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
EOFException
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
EOFException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
EOFException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
EOFException
-
readLine
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
EOFException
-
readString
- Throws:
EOFException
-