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 extendsInputStreamand implementsObjectInput.All the methods delegates to a
ObjectInputimplementation.- Since:
- 8.2
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectInputobjectInput
-
Constructor Summary
Constructors Constructor Description DelegatingObjectInput(ObjectInput objectInput)
-
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()ObjectreadObject()shortreadShort()intreadUnsignedByte()intreadUnsignedShort()StringreadUTF()longskip(long n)intskipBytes(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:
ClassNotFoundExceptionIOException
-
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
-
-