Package org.infinispan.marshall.core
Class AbstractBytesObjectInput
- java.lang.Object
-
- org.infinispan.marshall.core.AbstractBytesObjectInput
-
- All Implemented Interfaces:
DataInput,ObjectInput,AutoCloseable
public abstract class AbstractBytesObjectInput extends Object implements ObjectInput
Array backedObjectInputimplementation.skip(long)andskipBytes(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 theGlobalMarshalleris no longer based onStreamingMarshaller.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBytesObjectInput(byte[] bytes, int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()intread()intread(byte[] b)intread(byte[] b, int off, int len)booleanreadBoolean()bytereadByte()charreadChar()doublereadDouble()floatreadFloat()voidreadFully(byte[] b)voidreadFully(byte[] b, int off, int len)intreadInt()StringreadLine()longreadLong()shortreadShort()StringreadString()intreadUnsignedByte()intreadUnsignedShort()StringreadUTF()longskip(long n)intskipBytes(int n)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.io.ObjectInput
readObject
-
-
-
-
Method Detail
-
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
public void readFully(byte[] b) throws EOFException- Specified by:
readFullyin interfaceDataInput- Throws:
EOFException
-
readFully
public void readFully(byte[] b, int off, int len) throws EOFException- Specified by:
readFullyin interfaceDataInput- Throws:
EOFException
-
skipBytes
public int skipBytes(int n) throws EOFException- Specified by:
skipBytesin interfaceDataInput- Throws:
EOFException
-
readBoolean
public boolean readBoolean() throws EOFException- Specified by:
readBooleanin interfaceDataInput- Throws:
EOFException
-
readByte
public byte readByte() throws EOFException- Specified by:
readBytein interfaceDataInput- Throws:
EOFException
-
readUnsignedByte
public int readUnsignedByte() throws EOFException- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
EOFException
-
readShort
public short readShort() throws EOFException- Specified by:
readShortin interfaceDataInput- Throws:
EOFException
-
readUnsignedShort
public int readUnsignedShort() throws EOFException- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
EOFException
-
readChar
public char readChar() throws EOFException- Specified by:
readCharin interfaceDataInput- Throws:
EOFException
-
readInt
public int readInt() throws EOFException- Specified by:
readIntin interfaceDataInput- Throws:
EOFException
-
readLong
public long readLong() throws EOFException- Specified by:
readLongin interfaceDataInput- Throws:
EOFException
-
readFloat
public float readFloat() throws EOFException- Specified by:
readFloatin interfaceDataInput- Throws:
EOFException
-
readDouble
public double readDouble() throws EOFException- Specified by:
readDoublein interfaceDataInput- Throws:
EOFException
-
readUTF
public String readUTF() throws EOFException
- Specified by:
readUTFin interfaceDataInput- Throws:
EOFException
-
readString
public String readString() throws EOFException
- Throws:
EOFException
-
-