|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.util.UtlListElement
com.neeve.sto.StoField
com.neeve.sto.StoFixedLengthStringField
public final class StoFixedLengthStringField
An STO field that holds a fixed length string.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.neeve.sto.StoField |
---|
StoField.Type |
Field Summary |
---|
Fields inherited from class com.neeve.util.UtlListElement |
---|
count, head, next, prev |
Method Summary | |
---|---|
static StoFixedLengthStringField |
create(ByteBuffer buffer,
int offset)
Create an STO fixed length string field from its serialized form. |
static StoFixedLengthStringField |
create(String name,
int len)
Create an STO fixed length string field. |
static int |
getSerializedLength(ByteBuffer buffer,
int offset)
Get the length of a serialized fixed length string value. |
String |
getValue()
Get the field value |
boolean |
isVariableLength()
Implementation of StoField.isVariableLength() |
void |
reset()
Implementation of StoField.reset() |
void |
setValue(String val)
Set the field value |
Methods inherited from class com.neeve.sto.StoField |
---|
changeBackingBuffer, clearBackingBuffer, clone, contentsEquals, getBackingBuffer, getHeader, getLength, getName, getSerializedLength, getType, getVersion, isNamed, setBackingBuffer, shiftForHeader, sync, toString |
Methods inherited from class com.neeve.util.UtlListElement |
---|
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static StoFixedLengthStringField create(String name, int len)
name
- The name of the field. A value of null will cause an unnamed
field to be created.len
- The fixed field length. The field length must be > 0.public static StoFixedLengthStringField create(ByteBuffer buffer, int offset)
buffer
- The buffer containing the serialized field.offset
- The offset into the buffer where the serialized form of
the field begins.public static int getSerializedLength(ByteBuffer buffer, int offset)
buffer
- The buffer containing the serialized value.offset
- The offset into the buffer where the value is serialized.
This method leaves the buffer markers intact.
public final boolean isVariableLength()
StoField.isVariableLength()
isVariableLength
in class StoField
public final void reset()
StoField.reset()
reset
in class StoField
public final void setValue(String val)
val
- The value to set.public final String getValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |