com.crankuptheamps.client.fields
Class StringField

java.lang.Object
  extended by com.crankuptheamps.client.fields.Field
      extended by com.crankuptheamps.client.fields.StringField
Direct Known Subclasses:
BookmarkField

public class StringField
extends Field


Field Summary
protected static String LATIN1
           
protected static byte LATIN1_ZERO
           
 
Fields inherited from class com.crankuptheamps.client.fields.Field
buffer, length, position
 
Constructor Summary
  StringField()
           
protected StringField(byte[] buffer, int position, int length)
           
 
Method Summary
 boolean getValue(ByteBuffer v)
           
 String getValue(CharsetDecoder decoder)
           
 boolean getValue(CommandId v)
           
 void setValue(byte[] v, int offset, int length)
           
 void setValue(CommandId v)
           
 void setValue(String v, CharsetEncoder encoder)
           
 
Methods inherited from class com.crankuptheamps.client.fields.Field
byteAt, copy, copyFrom, equals, hashCode, isNull, reset, set, set, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LATIN1

protected static final String LATIN1
See Also:
Constant Field Values

LATIN1_ZERO

protected static final byte LATIN1_ZERO
See Also:
Constant Field Values
Constructor Detail

StringField

protected StringField(byte[] buffer,
                      int position,
                      int length)

StringField

public StringField()
Method Detail

getValue

public String getValue(CharsetDecoder decoder)

getValue

public boolean getValue(ByteBuffer v)

getValue

public boolean getValue(CommandId v)

setValue

public void setValue(byte[] v,
                     int offset,
                     int length)

setValue

public void setValue(CommandId v)

setValue

public void setValue(String v,
                     CharsetEncoder encoder)