org.infinispan.io
Class UnclosableObjectInputStream
java.lang.Object
org.infinispan.io.UnclosableObjectInputStream
- All Implemented Interfaces:
- DataInput, ObjectInput
public class UnclosableObjectInputStream
- extends Object
- implements ObjectInput
A delegating ObjectInput
that delegates all methods except ObjectInput.close()
.
- Since:
- 4.0
- Author:
- Manik Surtani
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnclosableObjectInputStream
public UnclosableObjectInputStream(ObjectInput delegate)
readObject
public final Object readObject()
throws ClassNotFoundException,
IOException
- Specified by:
readObject
in interface ObjectInput
- Throws:
ClassNotFoundException
IOException
read
public final int read()
throws IOException
- Specified by:
read
in interface ObjectInput
- Throws:
IOException
read
public final int read(byte[] b)
throws IOException
- Specified by:
read
in interface ObjectInput
- Throws:
IOException
read
public final int read(byte[] b,
int off,
int len)
throws IOException
- Specified by:
read
in interface ObjectInput
- Throws:
IOException
skip
public final long skip(long n)
throws IOException
- Specified by:
skip
in interface ObjectInput
- Throws:
IOException
available
public final int available()
throws IOException
- Specified by:
available
in interface ObjectInput
- Throws:
IOException
close
public final void close()
throws IOException
- Specified by:
close
in interface ObjectInput
- Throws:
IOException
readFully
public final void readFully(byte[] b)
throws IOException
- Specified by:
readFully
in interface DataInput
- Throws:
IOException
readFully
public final void readFully(byte[] b,
int off,
int len)
throws IOException
- Specified by:
readFully
in interface DataInput
- Throws:
IOException
skipBytes
public final int skipBytes(int n)
throws IOException
- Specified by:
skipBytes
in interface DataInput
- Throws:
IOException
readBoolean
public final boolean readBoolean()
throws IOException
- Specified by:
readBoolean
in interface DataInput
- Throws:
IOException
readByte
public final byte readByte()
throws IOException
- Specified by:
readByte
in interface DataInput
- Throws:
IOException
readUnsignedByte
public final int readUnsignedByte()
throws IOException
- Specified by:
readUnsignedByte
in interface DataInput
- Throws:
IOException
readShort
public final short readShort()
throws IOException
- Specified by:
readShort
in interface DataInput
- Throws:
IOException
readUnsignedShort
public final int readUnsignedShort()
throws IOException
- Specified by:
readUnsignedShort
in interface DataInput
- Throws:
IOException
readChar
public final char readChar()
throws IOException
- Specified by:
readChar
in interface DataInput
- Throws:
IOException
readInt
public final int readInt()
throws IOException
- Specified by:
readInt
in interface DataInput
- Throws:
IOException
readLong
public final long readLong()
throws IOException
- Specified by:
readLong
in interface DataInput
- Throws:
IOException
readFloat
public final float readFloat()
throws IOException
- Specified by:
readFloat
in interface DataInput
- Throws:
IOException
readDouble
public final double readDouble()
throws IOException
- Specified by:
readDouble
in interface DataInput
- Throws:
IOException
readLine
public final String readLine()
throws IOException
- Specified by:
readLine
in interface DataInput
- Throws:
IOException
readUTF
public final String readUTF()
throws IOException
- Specified by:
readUTF
in interface DataInput
- Throws:
IOException
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.