|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.libs.TWGByteArray
Sendable byte integer array object, based on DataValue interface. These are intended for use when data needs to be communicated to and from both Java and non-Java code.
Field Summary |
---|
Fields inherited from interface com.tivoli.twg.libs.DataValue |
---|
BOOLEAN_ARRAY_TYPE, BOOLEAN_TYPE, BYTE_ARRAY_TYPE, BYTE_TYPE, DATE_TYPE, DOUBLE_ARRAY_TYPE, DOUBLE_TYPE, FLOAT_ARRAY_TYPE, FLOAT_TYPE, FORMATTED_STRING_TYPE, INTEGER_ARRAY_TYPE, INTEGER_TYPE, LOCALESPECSTRING_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, NLSSTRING_TYPE, NONE_TYPE, SHORT_ARRAY_TYPE, SHORT_TYPE, STRING_ARRAY_TYPE, STRING_TYPE |
Constructor Summary | |
---|---|
TWGByteArray()
Default constructor : null string |
|
TWGByteArray(byte[] v)
Construct with initial value |
|
TWGByteArray(byte[] v,
int start,
int l)
Construct with initial value |
Method Summary | |
---|---|
void |
appendValue(byte newval)
Append new value at end of array |
int |
getDataValueType()
Get DataValue type |
int |
getLength()
Get length of array |
byte[] |
getValue()
Get copy of value array |
byte |
getValueAt(int index)
Get new value at given index of array |
int |
readDataValue(byte[] buf,
int start)
Read value from byte array into object |
void |
removeValueAt(int index)
Remove value at given index of array |
void |
setLength(int newlen)
Set length of array |
void |
setValue(byte[] v)
Set new value |
void |
setValue(byte[] v,
int start,
int l)
Set new value |
void |
setValueAt(int index,
byte newval)
Set new value at given index of array |
java.lang.String |
toNLSString(java.util.Locale loc)
Get value as NLS string |
java.lang.String |
toString()
Get value as string |
int |
writeDataValue(byte[] buf,
int start)
Write value into byte array : used for sending data value |
int |
writeDataValueLength()
Get length needed to write value into byte array : used for sending data value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TWGByteArray()
public TWGByteArray(byte[] v, int start, int l)
v
- - initial value arraystart
- - starting index of valuel
- - length of value arraypublic TWGByteArray(byte[] v)
v
- - initial valueMethod Detail |
public java.lang.String toString()
public java.lang.String toNLSString(java.util.Locale loc)
toNLSString
in interface DataValue
loc
- - localepublic byte[] getValue()
public void setValue(byte[] v)
v
- - new value arraypublic void setValue(byte[] v, int start, int l)
v
- - new value arraystart
- - start index of value setpublic byte getValueAt(int index)
index
- - index to be readpublic void removeValueAt(int index)
index
- - index to be removedpublic void setValueAt(int index, byte newval)
index
- - index to be writtennewval
- - value to be writtenpublic void appendValue(byte newval)
newval
- - value to be writtenpublic int getLength()
public void setLength(int newlen)
newlen
- - new lengthpublic int writeDataValue(byte[] buf, int start)
writeDataValue
in interface DataValue
buf
- - buffer to write data intostart
- - starting index for data write in 'buf'
public int writeDataValueLength()
writeDataValueLength
in interface DataValue
public int readDataValue(byte[] buf, int start)
readDataValue
in interface DataValue
buf
- - buffer to read fromstart
- - index of start of data to be read
public int getDataValueType()
getDataValueType
in interface DataValue
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |