ca.idms.io
Interface Native

All Known Subinterfaces:
NativeMessage
All Known Implementing Classes:
IdmsXid, NativeBase, NativeBuffer, NativeObject

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.

Since:
CA IDMS Server 4.2
Version:
2.00, 01/04/00
Author:
Dave Ross
See Also:
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

getClient

short getClient()
Gets the client type.

Returns:
client interface defined type

length

int length(NativeFormat fmt)
Computes the size of the native format of the object.

Parameters:
fmt - specifies the native data formats.
Returns:
length of the object in bytes.

writeNative

void writeNative(NativeDataOutputStream out)
                 throws java.io.IOException
Writes the object to a stream in native format.

Parameters:
out - the native buffered output stream.
Throws:
java.io.IOException - if an IO error occurs

readNative

void readNative(NativeDataInputStream in)
                throws java.io.IOException
Reads the object from a stream in native format.

Parameters:
in - the native buffered input stream.
Throws:
java.io.IOException - if an IO error occurs


Copyright © 2009 CA, All rights reserved