|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.msi.comms.bytebuffer.BufferCell
Describe class BufferCell here.
| Field Summary | |
private int |
length
|
private java.lang.String |
name
|
private int |
offset
|
| Constructor Summary | |
BufferCell(int offset,
int length)
Creates a new BufferCell instance. |
|
BufferCell(int offset,
int length,
java.lang.String name)
Creates a new BufferCell instance. |
|
| Method Summary | |
byte[] |
getBytes(byte[] buffer)
getBytes retrieve the bytes associated
with this Cell from the supplied byte array. |
int |
getLength()
Get the value of length. |
java.lang.String |
getName()
Get the value of name. |
int |
getOffset()
Get the value of offset. |
java.lang.String |
getString(byte[] buffer)
getString retrieve the Cell as a String
from the supplied buffer. |
void |
setBytes(byte[] buffer,
byte[] val)
setBytes copy the supplied bytes
into the supplied byte array. |
void |
setLength(int v)
Set the value of length. |
void |
setName(java.lang.String v)
Set the value of name. |
void |
setOffset(int v)
Set the value of offset. |
void |
setString(byte[] buffer,
java.lang.String val)
setString set the Cell data in the supplied
buffer from the supplied String. |
java.lang.String |
toString()
toString presentation of the class state. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int offset
private int length
private java.lang.String name
| Constructor Detail |
public BufferCell(int offset,
int length)
BufferCell instance.
offset - an int valuelength - an int value
public BufferCell(int offset,
int length,
java.lang.String name)
BufferCell instance.
offset - an int valuelength - an int valuename - a String value| Method Detail |
public java.lang.String toString()
toString presentation of the class state.
toString in class java.lang.ObjectString value
public byte[] getBytes(byte[] buffer)
throws java.lang.Exception
getBytes retrieve the bytes associated
with this Cell from the supplied byte array.
buffer - a byte[] containing this cell.
byte[] with the value of this cell.
java.lang.Exception - if an error occurs, generally index out
of range due to an undersized buffer.
public void setBytes(byte[] buffer,
byte[] val)
throws java.lang.Exception
setBytes copy the supplied bytes
into the supplied byte array.
buffer - a byte[] to contain
the supplied value.val - a byte[] with values to
copy to the buffer.
java.lang.Exception - if an error occurs, usually
out of bounds exception because the buffer is
too small or the val length is less than the Cell
length.
public java.lang.String getString(byte[] buffer)
throws java.lang.Exception
getString retrieve the Cell as a String
from the supplied buffer.
buffer - a byte[] containing the Cell data.
String representation of the Cell.
java.lang.Exception - if an error occurs.
public void setString(byte[] buffer,
java.lang.String val)
throws java.lang.Exception
setString set the Cell data in the supplied
buffer from the supplied String.
buffer - a byte[] containing the Cell data.val - a String containing the new values.
java.lang.Exception - if an error occurs.public int getLength()
public void setLength(int v)
v - Value to assign to length.public int getOffset()
public void setOffset(int v)
v - Value to assign to offset.public java.lang.String getName()
public void setName(java.lang.String v)
v - Value to assign to name.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||