|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypedBuffer
This interface is for TypedBuffers. Typed buffers must all implement the getType and getSubtype API, which take the place of the regular atmi function tptypes. Furthermore, they must implement _tmpresend and _tmpostrecv, which put the TypedBuffer object into encoded format or decode the encoded format. This is similar functionality to the Serializable interface, except that these functions must encode their objects in the format expected by the TUXEDO System (which, generally is XDR based).
Method Summary | |
---|---|
void |
_tmpostrecv(java.io.DataInputStream decoder,
int recv_size)
This function takes an encoded byte array and and fills in the object it corresponding object. |
void |
_tmpresend(java.io.DataOutputStream encoder)
This function presends and encodes the given TypedBuffer object. |
int |
getHintIndex()
This function returns the hint index for this type and subtype. |
java.lang.String |
getSubtype()
This function returns the string version of the subtype of this buffer. |
java.lang.String |
getType()
This function returns the string version of the type of this buffer. |
Method Detail |
---|
int getHintIndex()
integer
representing the typeswitch
index for this TypedBuffer.java.lang.String getType()
String
object that represents the
type of this bufferjava.lang.String getSubtype()
String
object that represents the
subtype of this buffer. May return NULL or the empty
string if there is no subtype associated with this
buffervoid _tmpresend(java.io.DataOutputStream encoder) throws TPException, java.io.IOException
encoder
- The output stream to encode this type to. Should
not be padded.
TPException
- java.io.IOException
- If there was an error writing to the
DataOutputStreamvoid _tmpostrecv(java.io.DataInputStream decoder, int recv_size) throws TPException, java.io.IOException
decoder
- A stream that starts with the encoded data
for this buffer type. Only recv_size bytes should
be read from the stream (though at the time this function
is called all bytes necessary to decode this type should
be available)recv_size
- The total size of encoded data from the
start position (note that encoded may be larger than
the actual recieved size)
TPException
- TPEINVAL if this stream could not be
decoded for any reason
java.io.IOException
- if there was an error reading from the stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |