|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Native
Classes that implement the Native interface model native control blocks and provide methods to read and write their contents to buffered native data input and output streams. The native data input streams convert data to either the native format used by the native methods or a platform independent network format. Native is analagous to the Externalize interface. Native classes should be derived from the NativeObject class.
NativeFormat
,
NativeDataInputStream
,
NativeDataOutputStream
Method Summary | |
---|---|
short |
getClient()
Gets the client type. |
int |
length(NativeFormat fmt)
Computes the size of the native format of the object. |
void |
readNative(NativeDataInputStream in)
Reads the object from a stream in native format. |
void |
writeNative(NativeDataOutputStream out)
Writes the object to a stream in native format. |
Method Detail |
---|
short getClient()
int length(NativeFormat fmt)
fmt
- specifies the native data formats.
void writeNative(NativeDataOutputStream out) throws java.io.IOException
out
- the native buffered output stream.
java.io.IOException
- if an IO error occursvoid readNative(NativeDataInputStream in) throws java.io.IOException
in
- the native buffered input stream.
java.io.IOException
- if an IO error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |