|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
java.io.InputStream
com.tangosol.io.WrapperDataInputStream
com.tangosol.io.WrapperObjectInputStream
public class WrapperObjectInputStream
This is an imitation ObjectInputStream class that provides the ObjectInput interface by delegating to an object that implements the ObjectInput interface. Primarily, this is intended as a base class for building specific-purpose ObjectInput wrappers.
| Constructor Summary | |
|---|---|
WrapperObjectInputStream(java.io.ObjectInput in)Construct a WrapperObjectInputStream that will read from the specified object implementing the ObjectInput interface. |
|
| Method Summary | |
|---|---|
int |
available()Returns the number of bytes that can be read (or skipped over) from this input stream without causing a blocking I/O condition to occur. |
void |
close()Close the InputStream and release any system resources associated with it. |
java.io.ObjectInput |
getObjectInput()Obtain the underlying object providing the ObjectInput interface that this object is delegating to. |
int |
read()Read the next byte of data from the InputStream. |
int |
read(byte[] ab)Read some number of bytes from the input stream and store them into the passed array ab. |
int |
read(byte[] ab, int of, int cb)Read up to cb bytes from the input stream and store them into the passed array ab starting at offset of. |
java.lang.Object |
readObject()Read and return an object. |
long |
skip(long cb)Skips over up to the specified number of bytes of data from this InputStream. |
| Methods inherited from class com.tangosol.io.WrapperDataInputStream |
|---|
getClassLoader, getDataInput, mark, markSupported, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, reset, skipBytes |
| Methods inherited from interface java.io.DataInput |
|---|
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes |
| Constructor Detail |
|---|
public WrapperObjectInputStream(java.io.ObjectInput in)
in - an object implementing ObjectInput to read from| Method Detail |
|---|
public java.io.ObjectInput getObjectInput()
public java.lang.Object readObject()
throws java.lang.ClassNotFoundException,
java.io.IOException
readObject in interface java.io.ObjectInputjava.lang.ClassNotFoundException - if the class of a serialized object object cannot be foundjava.io.IOException - if an I/O error occurs
public int read()
throws java.io.IOException
int in the range 0 to 255. If the end of the stream has been reached, the value -1 is returned.
This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.
read in interface com.oracle.common.io.InputStreamingread in interface java.io.ObjectInputread in class WrapperDataInputStream-1 if the end of the stream has been reachedjava.io.IOException - if an I/O error occurs
public int read(byte[] ab)
throws java.io.IOException
ab. The number of bytes actually read is returned.
This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.
read in interface com.oracle.common.io.InputStreamingread in interface java.io.ObjectInputread in class WrapperDataInputStreamab - the array to store the bytes which are read from the stream-1 if no bytes were read from the stream because the end of the stream had been reachedjava.lang.NullPointerException - if the passed array is nulljava.io.IOException - if an I/O error occurs
public int read(byte[] ab,
int of,
int cb)
throws java.io.IOException
cb bytes from the input stream and store them into the passed array ab starting at offset of. The number of bytes actually read is returned.
This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.
read in interface com.oracle.common.io.InputStreamingread in interface java.io.ObjectInputread in class WrapperDataInputStreamab - the array to store the bytes which are read from the streamof - the offset into the array that the read bytes will be storedcb - the maximum number of bytes to read-1 if no bytes were read from the stream because the end of the stream had been reachedjava.lang.NullPointerException - if the passed array is nulljava.lang.IndexOutOfBoundsException - if of or cb is negative, or of+cb is greater than the length of the abjava.io.IOException - if an I/O error occurs
public long skip(long cb)
throws java.io.IOException
skip in interface com.oracle.common.io.InputStreamingskip in interface java.io.ObjectInputskip in class WrapperDataInputStreamcb - the maximum number of bytes to skip overjava.io.IOException - if an I/O error occurs
public int available()
throws java.io.IOException
available in interface com.oracle.common.io.InputStreamingavailable in interface java.io.ObjectInputavailable in class WrapperDataInputStreamjava.io.IOException - if an I/O error occurs
public void close()
throws java.io.IOException
close in interface com.oracle.common.io.InputStreamingclose in interface java.io.Closeableclose in interface java.io.ObjectInputclose in class WrapperDataInputStreamjava.io.IOException - if an I/O error occurs
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||