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
-
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) boolean
byte
readByte()
char
readChar()
double
float
void
readFully
(byte[] b) void
readFully
(byte[] b, int off, int len) int
readInt()
readLine()
long
readLong()
short
int
int
readUTF()
long
skip
(long n) int
skipBytes
(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
-
Constructor Details
-
AbstractBytesObjectInput
protected AbstractBytesObjectInput(byte[] bytes, int offset)
-
-
Method Details
-
read
public int read()- Specified by:
read
in interfaceObjectInput
-
read
public int read(byte[] b) - Specified by:
read
in interfaceObjectInput
-
read
public int read(byte[] b, int off, int len) - Specified by:
read
in interfaceObjectInput
-
skip
public long skip(long n) - Specified by:
skip
in interfaceObjectInput
-
available
public int available()- Specified by:
available
in interfaceObjectInput
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceObjectInput
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
EOFException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
EOFException
-
skipBytes
- Specified by:
skipBytes
in interfaceDataInput
- Throws:
EOFException
-
readBoolean
- Specified by:
readBoolean
in interfaceDataInput
- Throws:
EOFException
-
readByte
- Specified by:
readByte
in interfaceDataInput
- Throws:
EOFException
-
readUnsignedByte
- Specified by:
readUnsignedByte
in interfaceDataInput
- Throws:
EOFException
-
readShort
- Specified by:
readShort
in interfaceDataInput
- Throws:
EOFException
-
readUnsignedShort
- Specified by:
readUnsignedShort
in interfaceDataInput
- Throws:
EOFException
-
readChar
- Specified by:
readChar
in interfaceDataInput
- Throws:
EOFException
-
readInt
- Specified by:
readInt
in interfaceDataInput
- Throws:
EOFException
-
readLong
- Specified by:
readLong
in interfaceDataInput
- Throws:
EOFException
-
readFloat
- Specified by:
readFloat
in interfaceDataInput
- Throws:
EOFException
-
readDouble
- Specified by:
readDouble
in interfaceDataInput
- Throws:
EOFException
-
readLine
-
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Throws:
EOFException
-
readString
- Throws:
EOFException
-