Package org.infinispan.commons.marshall
Class DelegatingObjectInput
- java.lang.Object
-
- java.io.InputStream
-
- org.infinispan.commons.marshall.DelegatingObjectInput
-
- All Implemented Interfaces:
Closeable
,DataInput
,ObjectInput
,AutoCloseable
public class DelegatingObjectInput extends InputStream implements ObjectInput
Class that extendsInputStream
and implementsObjectInput
.All the methods delegates to a
ObjectInput
implementation.- Since:
- 8.2
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectInput
objectInput
-
Constructor Summary
Constructors Constructor Description DelegatingObjectInput(ObjectInput objectInput)
-
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()
String
readLine()
long
readLong()
Object
readObject()
short
readShort()
int
readUnsignedByte()
int
readUnsignedShort()
String
readUTF()
long
skip(long n)
int
skipBytes(int n)
-
-
-
Field Detail
-
objectInput
protected final ObjectInput objectInput
-
-
Constructor Detail
-
DelegatingObjectInput
public DelegatingObjectInput(ObjectInput objectInput)
-
-
Method Detail
-
readObject
public Object readObject() throws ClassNotFoundException, IOException
- Throws:
ClassNotFoundException
IOException
-
read
public int read() throws IOException
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Throws:
IOException
-
skip
public long skip(long n) throws IOException
- Throws:
IOException
-
available
public int available() throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Throws:
IOException
-
readFully
public void readFully(byte[] b) throws IOException
- Throws:
IOException
-
readFully
public void readFully(byte[] b, int off, int len) throws IOException
- Throws:
IOException
-
skipBytes
public int skipBytes(int n) throws IOException
- Throws:
IOException
-
readBoolean
public boolean readBoolean() throws IOException
- Throws:
IOException
-
readByte
public byte readByte() throws IOException
- Throws:
IOException
-
readUnsignedByte
public int readUnsignedByte() throws IOException
- Throws:
IOException
-
readShort
public short readShort() throws IOException
- Throws:
IOException
-
readUnsignedShort
public int readUnsignedShort() throws IOException
- Throws:
IOException
-
readChar
public char readChar() throws IOException
- Throws:
IOException
-
readInt
public int readInt() throws IOException
- Throws:
IOException
-
readLong
public long readLong() throws IOException
- Throws:
IOException
-
readFloat
public float readFloat() throws IOException
- Throws:
IOException
-
readDouble
public double readDouble() throws IOException
- Throws:
IOException
-
readLine
public String readLine() throws IOException
- Throws:
IOException
-
readUTF
public String readUTF() throws IOException
- Throws:
IOException
-
-