com.crankuptheamps.client.fields
Class Field

java.lang.Object
  extended by com.crankuptheamps.client.fields.Field
Direct Known Subclasses:
AckTypeField, BooleanField, CommandField, IntegerField, LongField, ReasonField, StatusField, StringField

public class Field
extends Object


Field Summary
 byte[] buffer
           
 int length
           
 int position
           
 
Constructor Summary
Field()
           
Field(byte[] buffer, int position, int length)
           
Field(String value)
           
 
Method Summary
 byte byteAt(int i)
           
 Field copy()
           
 void copyFrom(Field f)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isNull()
           
 void reset()
           
 void set(byte[] buffer)
           
 void set(byte[] buffer, int position, int length)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

buffer

public byte[] buffer

position

public int position

length

public int length
Constructor Detail

Field

public Field()

Field

public Field(String value)

Field

public Field(byte[] buffer,
             int position,
             int length)
Method Detail

set

public void set(byte[] buffer,
                int position,
                int length)

set

public void set(byte[] buffer)

isNull

public boolean isNull()

reset

public void reset()

byteAt

public byte byteAt(int i)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

copy

public Field copy()

toString

public String toString()
Overrides:
toString in class Object

copyFrom

public void copyFrom(Field f)