|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.wtc.jatmi.StandardTypes
weblogic.wtc.jatmi.MBStringTypes
weblogic.wtc.jatmi.TypedMBString
public final class TypedMBString
This is the jatmi analogue to the MBSTRING Tuxedo buffer type
MBStringTypes
,
StandardTypes
,
TypedBuffer
,
Serialized FormField Summary |
---|
Fields inherited from class weblogic.wtc.jatmi.MBStringTypes |
---|
mbencoding |
Fields inherited from class weblogic.wtc.jatmi.StandardTypes |
---|
CALLOUT_HINT, CARRAY_HINT, CMPS_HDR_HINT, COMPOS_HINT, FML_HINT, FML32_HINT, MBSTRING_HINT, MTTYP_HINT, PROP_HINT, ROUTE_HINT, RPCRP_HINT, RPCRQ_HINT, STRING_HINT, TDOM_VALS_HINT, TGIOP_HINT, TM_HINT, TPINITTYPE_HINT, TRAN_HINT, UNSOL_HINT, VIEW_HINT, VIEW32_HINT, WS_HINT, WSRPCRQ_HINT, X_C_TYPE_HINT, X_COMMON_HINT, X_OCTET_HINT, XML_HINT |
Constructor Summary | |
---|---|
TypedMBString()
Generates a StringBuffer with the default capacity of 16 |
|
TypedMBString(int capacity)
Creates an empty StringBuffer that has the initial capacity given |
|
TypedMBString(String str)
Constructor. |
|
TypedMBString(TypedMBString copyFrom)
This constructor copies the fields from the input MBString buffer. |
Method Summary | |
---|---|
void |
_tmpostrecv(DataInputStream decoder,
int recv_size)
XDR decodes the given string. |
void |
_tmpresend(DataOutputStream encoder)
This function presends and encodes the given TypedBuffer object. |
byte[] |
getBytes()
|
StringBuffer |
getStringBuffer()
Gets the StringBuffer associated with this object. |
void |
setBytes(byte[] bytes)
|
String |
toString()
Returns a copy of this object as a String |
Methods inherited from class weblogic.wtc.jatmi.MBStringTypes |
---|
getMBEncoding, setMBEncoding |
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, wait, wait, wait |
Methods inherited from interface weblogic.wtc.jatmi.TypedBuffer |
---|
getHintIndex, getSubtype, getType |
Constructor Detail |
---|
public TypedMBString()
public TypedMBString(int capacity)
capacity
- The capacity the StringBuffer associated with this
TypedMBString should havepublic TypedMBString(String str)
str
- the string to initialize this object withpublic TypedMBString(TypedMBString copyFrom)
copyFrom
- The MBString buffer to copy data fromMethod Detail |
---|
public StringBuffer getStringBuffer()
public byte[] getBytes()
public void setBytes(byte[] bytes)
public void _tmpresend(DataOutputStream encoder) throws TPException, IOException
XDR encodes the given string. XDR encoding of a string is four length bytes (not including any NULL byte at the end) followed by the string itself (low 32 bits of the unicode characters). It is padded out to make the total length a multiple of four.
_tmpresend
in interface TypedBuffer
encoder
- The output stream to encode this type to. Should
not be padded.
TPException
- IOException
- If there was an error writing to the
DataOutputStreampublic void _tmpostrecv(DataInputStream decoder, int recv_size) throws TPException, IOException
_tmpostrecv
in interface TypedBuffer
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 received size)
TPException
- TPEINVAL if this stream could not be
decoded for any reason
IOException
- if there was an error reading from the streampublic String toString()
toString
in class Object
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |