eap.freeciv
Class BitStringField

java.lang.Object
  extended byeap.freeciv.Field
      extended byeap.freeciv.SimpleField
          extended byeap.freeciv.BitStringField

public class BitStringField
extends SimpleField


Constructor Summary
BitStringField()
           
 
Method Summary
 int getValueSize(Packet packet)
          Returns the size of the data in this field.
 void readValue(Packet packet, PacketSource source)
          Read the data in this field from the packet.
 void writeValue(Object object, OutputStream out)
          Write the data in this field.
 
Methods inherited from class eap.freeciv.SimpleField
addIndex, getname, getSize, isOptional, isSet, read, removeIndex, setCondition, setName, setOptional, setScale, testCondition, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitStringField

public BitStringField()
Method Detail

readValue

public void readValue(Packet packet,
                      PacketSource source)
               throws IOException
Description copied from class: SimpleField
Read the data in this field from the packet. The SimpleField.read(eap.freeciv.Packet, eap.freeciv.PacketSource) method determines whether this field should appear in the packet and then calls this method to read the actual data.

Specified by:
readValue in class SimpleField
Throws:
IOException

writeValue

public void writeValue(Object object,
                       OutputStream out)
                throws IOException
Description copied from class: SimpleField
Write the data in this field. The SimpleField.write(eap.freeciv.Packet, java.io.OutputStream) method determines whether this field should appear in the packet and then calls this method to write the actual data.

Specified by:
writeValue in class SimpleField
Throws:
IOException

getValueSize

public int getValueSize(Packet packet)
Description copied from class: SimpleField
Returns the size of the data in this field. The SimpleField.getSize(Packet) method determines whether the packet contains this field and then calls this method to return its size.

Specified by:
getValueSize in class SimpleField