java.io.Serializable
, FML
, TypedBuffer
public final class TypedFML32 extends MBStringTypes implements TypedBuffer, java.io.Serializable, FML
FmlKey
,
FldTbl
,
TypedBuffer
,
mkfldclass32
,
Serialized FormModifier and Type | Field | Description |
---|---|---|
protected java.util.HashMap |
_flds |
|
protected java.util.HashMap |
fldid_occs |
|
protected FldTbl[] |
fldtbls |
|
protected int |
indxintvl |
|
protected int |
len |
|
protected int |
magic |
|
protected int |
maxlen |
|
protected int |
nfields |
|
protected int |
nie |
FLD_BOOL, FLD_CARRAY, FLD_CHAR, FLD_DECIMAL, FLD_DOUBLE, FLD_FLOAT, FLD_FML32, FLD_INT, FLD_LDOUBLE, FLD_LLONG, FLD_LONG, FLD_MBSTRING, FLD_PTR, FLD_SCHAR, FLD_SHORT, FLD_STRING, FLD_UCHAR, FLD_UINT, FLD_ULLONG, FLD_USHORT, FLD_VIEW32, FLD_WCHAR
mbencoding
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
Modifier and Type | Method | Description |
---|---|---|
void |
_tmpresend(java.io.DataOutputStream encoder) |
This function presends and encodes the given TypedBuffer
object.
|
void |
Fadd(int fldid32,
java.lang.Object value) |
Adds the given object.
|
void |
Fchg(int fldid,
int occurrence,
java.lang.Object value) |
Adds the given object.
|
void |
Fchg(FmlKey key,
java.lang.Object value) |
Adds the given object, whose field id is contained in key to the
fielded buffer.
|
void |
Fdel(int fldid,
int occurrence) |
Delete given element from fielded buffer.
|
void |
Fdel(FmlKey key) |
Delete given key from fielded buffer.
|
java.lang.Object |
Fget(int fldid,
int occurrence) |
Retrieves a copy of the object stored in the FML buffer of the
given field id and occurrence number.
|
java.lang.Object |
Fget(int fldid,
int occurrence,
boolean getLong) |
Retrieves a copy of the object stored in the FML buffer of the
given field id and occurrence number.
|
java.lang.Object |
Fget(FmlKey key) |
Retrieves a copy of the object stored in the FML32 buffer of the
given field id and occurrence number.
|
java.lang.Object |
Fget(FmlKey key,
boolean getLong) |
Retrieves a copy of the object stored in the FML32 buffer of the
given field id and occurrence number.
|
java.util.Iterator |
Fiterator() |
Returns an iterator for the start of the fielded FML32 buffer.
|
int |
Fldid(java.lang.String name) |
Returns the field id corresponding to the given name.
|
int |
Fldno(int fldid32) |
Given a fieldid, this returns the field number
|
int |
Fldtype(int fldid32) |
Given a fieldid, this returns the field type
|
java.lang.String |
Fname(int fldid32) |
Returns the string that matches the given fieldid.
|
int |
Foccur(int fldid) |
Returns the number of occurences of the field specified by fldid
|
int |
Fused() |
Returns the amount of space that this FML buffer will take when present
|
FldTbl[] |
getFieldTables() |
gets the current list of FldTbls that are being used by this
FML32 object to do FldId/String mappings.
|
protected boolean |
hasPointerFields() |
Tells whether or not this buffer has any embedded pointers within
it at all
|
void |
setFieldTables(FldTbl[] tables) |
This function sets the list of FldTbl objects that can be used for
FldId/String mappings
|
java.util.Iterator |
sortedFiterator() |
getMBEncoding, setMBEncoding
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHintIndex, getSubtype, getType, hint_to_type
getHintIndex, getSubtype, getType
protected int magic
protected int len
protected int maxlen
protected int nfields
protected int nie
protected int indxintvl
protected java.util.HashMap _flds
protected java.util.HashMap fldid_occs
protected FldTbl[] fldtbls
public void setFieldTables(FldTbl[] tables)
setFieldTables
in interface FML
tables
- The list of tables to use for FldId/String mappingsFldTbl
public FldTbl[] getFieldTables()
getFieldTables
in interface FML
public int Fldno(int fldid32)
public int Fldtype(int fldid32)
public void Fchg(FmlKey key, java.lang.Object value) throws Ferror
Fchg
in interface FML
key
- The fieldid and occurrence to add to the buffervalue
- The element to add to the buffer. Note that this object
must match the type of object expected by the field type, or an
invalid cast exception will be thrownFerror
- usually if space is lowFmlKey
public void Fchg(int fldid, int occurrence, java.lang.Object value) throws Ferror
Fchg
in interface FML
fldid
- The fieldid to add to this bufferoccurrence
- The occurrence number of the field to addvalue
- The element to add to the buffer. Note that this object
must match the type of object expected by the field type, or an
invalid cast exception will be thrownFerror
- usually if space is lowFmlKey
public void Fadd(int fldid32, java.lang.Object value) throws Ferror
public java.lang.Object Fget(FmlKey key) throws Ferror
public java.lang.Object Fget(FmlKey key, boolean getLong) throws Ferror
key
- the field id and occurrence number of the element to retrievegetLong
- if expect to return a Long object for FLD_LONGFerror
- if the object is not found in the buffer among other reasonspublic java.lang.Object Fget(int fldid, int occurrence) throws Ferror
public java.lang.Object Fget(int fldid, int occurrence, boolean getLong) throws Ferror
fldid
- The field id of the element to retrieveoccurrence
- The occurrence number of the element to retrievegetLong
- if expect to return a Long object for FLD_LONGFerror
- if the object is not found in the buffer among other reasonspublic java.util.Iterator Fiterator()
public java.util.Iterator sortedFiterator()
public int Foccur(int fldid)
protected boolean hasPointerFields()
public void Fdel(FmlKey key) throws Ferror
public void Fdel(int fldid, int occurrence) throws Ferror
public java.lang.String Fname(int fldid32) throws Ferror
public int Fldid(java.lang.String name) throws Ferror
public int Fused()
public void _tmpresend(java.io.DataOutputStream encoder) throws TPException, java.io.IOException
XDR encodes the FML32 buffer
_tmpresend
in interface TypedBuffer
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
DataOutputStream