BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.wtc.jatmi
Class TypedXML

java.lang.Object
  |
  +--weblogic.wtc.jatmi.StandardTypes
        |
        +--weblogic.wtc.jatmi.TypedXML

public class TypedXML
extends StandardTypes
implements TypedBuffer

This is the jatmi analogue to the XML Tuxedo buffer type

Author:
BEA Systems, Inc.
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.
See Also:
StandardTypes, TypedBuffer, Serialized Form

Field Summary
 int sendSize
          The amount of data in #xmlarray to send
 byte[] xmlarray
          The binary data to send to the remote TUXEDO domain
 
Constructor Summary
TypedXML()
          Default constructor.
TypedXML(int length)
          Constructor.
 
Method Summary
 void _tmpostrecv(java.io.DataInputStream decoder, int recv_size)
          XDR decodes the given xmlarray.
 void _tmpresend(java.io.DataOutputStream encoder)
          This function presends and encodes the given TypedBuffer object.
 int getSendSize()
          gets the amount of data to send in #xmlarray
 void setSendSize(int aSendSize)
          sets the amount of data to send in #xmlarray
 
Methods inherited from class weblogic.wtc.jatmi.StandardTypes
getHintIndex, getSubtype, getType, hint_to_type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlarray

public byte[] xmlarray
The binary data to send to the remote TUXEDO domain

sendSize

public int sendSize
The amount of data in #xmlarray to send
Constructor Detail

TypedXML

public TypedXML()
Default constructor. xmlarray is NULL, sendSize 0

TypedXML

public TypedXML(int length)
Constructor. Creates an empty byte array of the given size

Parameters:
length - the size of the byte array to generate. #sendSize will be initialized to length
Method Detail

getSendSize

public int getSendSize()
gets the amount of data to send in #xmlarray

Returns:
The amount of data in #xmlarray that will be sent

setSendSize

public void setSendSize(int aSendSize)
sets the amount of data to send in #xmlarray

Parameters:
aSendSize - The amount of data in #xmlarray to send

_tmpresend

public void _tmpresend(java.io.DataOutputStream encoder)
                throws TPException,
                       java.io.IOException
This function presends and encodes the given TypedBuffer object. It is equivalent to the combination of _tmpresend and _tmencdec functions from the buffer(3i) TUXEDO manual page.

XDR encodes the given xmlarray. XDR encoding of a xmlarray is simply the xmlarray itself. The returned byte array will be exactly #sendSize bytes.

Specified by:
_tmpresend in interface TypedBuffer

Parameters:
encoder - The output stream to encode this type to. Should not be padded.
Throws:
TPException -
  • TPEINVAL - If there was some problem with the state of the TypedBuffer.
  • Any other errno is considered a fatal error
java.io.IOException - If there was an error writing to the DataOutputStream

_tmpostrecv

public void _tmpostrecv(java.io.DataInputStream decoder,
                        int recv_size)
                 throws TPException,
                        java.io.IOException
XDR decodes the given xmlarray. XDR encoding of a xmlarray is simply the xmlarray itself. The amount of data in the xmlarray is determined by the input recv_size parameter.
Specified by:
_tmpostrecv in interface TypedBuffer

Parameters:
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)
Throws:
TPException - TPEINVAL if this stream could not be decoded for any reason

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.