public class IOJBaseObjectReader extends AbstractJBaseObjectReader
jBase object reader based on the DataInputStream.
log
Modifier | Constructor and Description |
---|---|
protected |
IOJBaseObjectReader() |
|
IOJBaseObjectReader(ObjectFactory factory,
byte[] b)
Constructor FOR TESTING ONLY.
|
|
IOJBaseObjectReader(ObjectFactory factory,
java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
protected int |
bufferedRead() |
void |
close() |
protected byte |
getByte() |
protected int |
getBytes(byte[] buf) |
protected int |
getBytes(java.nio.ByteBuffer bBuf) |
protected int |
getInt() |
ObjectFactory |
getObjectFactory()
This method must be implemented by concrete ObjectReaders.
|
protected int |
inBytes(int numberOfBytesToRead) |
protected boolean |
isClosed() |
boolean |
isUnpackRequired() |
protected java.lang.String |
readUTF() |
void |
unpack() |
checkBuffer, readByteObject, readBytes, readInt, readJBaseSerializableObject, readObject, readObject, readObject, readRootObject, readString
protected IOJBaseObjectReader()
public IOJBaseObjectReader(ObjectFactory factory, java.io.InputStream is)
public IOJBaseObjectReader(ObjectFactory factory, byte[] b)
public ObjectFactory getObjectFactory()
AbstractJBaseObjectReader
getObjectFactory
in class AbstractJBaseObjectReader
public void close() throws java.io.IOException
close
in interface JBaseObjectReader
close
in class AbstractJBaseObjectReader
java.io.IOException
protected byte getByte() throws java.io.IOException
getByte
in class AbstractJBaseObjectReader
java.io.IOException
protected int getInt() throws java.io.IOException
getInt
in class AbstractJBaseObjectReader
java.io.IOException
protected int getBytes(byte[] buf) throws java.io.IOException
getBytes
in class AbstractJBaseObjectReader
java.io.IOException
protected int getBytes(java.nio.ByteBuffer bBuf) throws java.io.IOException
getBytes
in class AbstractJBaseObjectReader
java.io.IOException
protected java.lang.String readUTF() throws java.io.IOException
readUTF
in class AbstractJBaseObjectReader
java.io.IOException
protected int inBytes(int numberOfBytesToRead) throws java.io.IOException
inBytes
in class AbstractJBaseObjectReader
java.io.IOException
protected boolean isClosed()
protected int bufferedRead() throws java.io.IOException
bufferedRead
in class AbstractJBaseObjectReader
java.io.IOException
public void unpack() throws java.io.IOException
java.io.IOException
public boolean isUnpackRequired() throws java.io.IOException
java.io.IOException