|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JBaseObjectReader
Deserializes objects sent from the jsqld server. Clients of classes implementing this interface use readObject method to read deserialized objects. This interface is simillar to java.io.ObjectInputStream. It does not extend java.io.ObjectInputStream because that would require handling of the original Java'a serialization protocol on the jsqld server.
Method Summary | |
---|---|
void |
close()
|
byte[] |
readBytes()
|
int |
readInt()
Reads a 32 bits integer from the underlying InputStream. |
Object |
readObject()
Reads/deserializes next object. |
IByteObject |
readObject(IByteObject o)
Reads/deserializes next byte object, a new IByteObject should be created and returned if a null argument is passed in. |
JBaseSerializable |
readObject(JBaseSerializable o)
Reads/deserializes next object, a JBaseSerializable object should be created and returned if a null argument is passed in. |
JBaseSerializable |
readRootObject()
Deserializes a root object. |
String |
readString()
Reads a java.lang.String. |
Method Detail |
---|
Object readObject() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
JBaseSerializable readObject(JBaseSerializable o) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
IByteObject readObject(IByteObject o) throws IOException
IOException
int readInt() throws IOException
IOException
String readString() throws IOException
IOException
byte[] readBytes() throws IOException
IOException
JBaseSerializable readRootObject() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
void close() throws IOException
IOException
|
jremote jbase5.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |