Package org.infinispan.marshall.core
Class AbstractBytesObjectInput
- java.lang.Object
-
- org.infinispan.marshall.core.AbstractBytesObjectInput
-
- All Implemented Interfaces:
java.io.DataInput
,java.io.ObjectInput
,java.lang.AutoCloseable
public abstract class AbstractBytesObjectInput extends java.lang.Object implements java.io.ObjectInput
Array backedObjectInput
implementation.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 theGlobalMarshaller
is no longer based onStreamingMarshaller
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBytesObjectInput(byte[] bytes, int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
boolean
readBoolean()
byte
readByte()
char
readChar()
double
readDouble()
float
readFloat()
void
readFully(byte[] b)
void
readFully(byte[] b, int off, int len)
int
readInt()
java.lang.String
readLine()
long
readLong()
short
readShort()
java.lang.String
readString()
int
readUnsignedByte()
int
readUnsignedShort()
java.lang.String
readUTF()
long
skip(long n)
int
skipBytes(int n)
-
-
-
Method Detail
-
read
public int read()
- Specified by:
read
in interfacejava.io.ObjectInput
-
read
public int read(byte[] b)
- Specified by:
read
in interfacejava.io.ObjectInput
-
read
public int read(byte[] b, int off, int len)
- Specified by:
read
in interfacejava.io.ObjectInput
-
skip
public long skip(long n)
- Specified by:
skip
in interfacejava.io.ObjectInput
-
available
public int available()
- Specified by:
available
in interfacejava.io.ObjectInput
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.ObjectInput
-
readFully
public void readFully(byte[] b) throws java.io.EOFException
- Specified by:
readFully
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readFully
public void readFully(byte[] b, int off, int len) throws java.io.EOFException
- Specified by:
readFully
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
skipBytes
public int skipBytes(int n) throws java.io.EOFException
- Specified by:
skipBytes
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readBoolean
public boolean readBoolean() throws java.io.EOFException
- Specified by:
readBoolean
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readByte
public byte readByte() throws java.io.EOFException
- Specified by:
readByte
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readUnsignedByte
public int readUnsignedByte() throws java.io.EOFException
- Specified by:
readUnsignedByte
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readShort
public short readShort() throws java.io.EOFException
- Specified by:
readShort
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readUnsignedShort
public int readUnsignedShort() throws java.io.EOFException
- Specified by:
readUnsignedShort
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readChar
public char readChar() throws java.io.EOFException
- Specified by:
readChar
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readInt
public int readInt() throws java.io.EOFException
- Specified by:
readInt
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readLong
public long readLong() throws java.io.EOFException
- Specified by:
readLong
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readFloat
public float readFloat() throws java.io.EOFException
- Specified by:
readFloat
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readDouble
public double readDouble() throws java.io.EOFException
- Specified by:
readDouble
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readLine
public java.lang.String readLine()
- Specified by:
readLine
in interfacejava.io.DataInput
-
readUTF
public java.lang.String readUTF() throws java.io.EOFException
- Specified by:
readUTF
in interfacejava.io.DataInput
- Throws:
java.io.EOFException
-
readString
public java.lang.String readString() throws java.io.EOFException
- Throws:
java.io.EOFException
-
-