Class WObjectReader
java.lang.Object
java.io.InputStream
com.fishlib.io.streams.ByteBufferInputStream
io.deephaven.enterprise.comm.impl.nio.WObjectReader
- All Implemented Interfaces:
Closeable,DataInput,ObjectInput,AutoCloseable
- Direct Known Subclasses:
WObjectReaderLowAlloc
public class WObjectReader
extends com.fishlib.io.streams.ByteBufferInputStream
implements ObjectInput
This is an extension of the ByteBufferInputStream which provides the method readObject(), which reads serialized
objects in the WObject protocol. It "suffers" from the same restrictions as ByteBufferInputStream in that if the
entire object is not present in the buffer, it will throw an EOFException.
Created by IntelliJ IDEA. User: jrauser Date: Feb 8, 2007 Time: 7:09:36 PM To change this template use File |
Settings | File Templates.
-
Field Summary
Fields inherited from class com.fishlib.io.streams.ByteBufferInputStream
buf -
Constructor Summary
ConstructorsConstructorDescriptionWObjectReader(ByteBuffer buf) Constructs a new stream which will read from the given buffer. -
Method Summary
Methods inherited from class com.fishlib.io.streams.ByteBufferInputStream
available, close, mark, markSupported, read, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, readUTF, readUTF, reset, setBuffer, skip, skipBytesMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
-
Constructor Details
-
WObjectReader
Constructs a new stream which will read from the given buffer.
-
-
Method Details
-
readObject
Read an object from the stream.- Specified by:
readObjectin interfaceObjectInput- Throws:
ClassNotFoundExceptionBufferUnderflowExceptionIOException
-