eap.freeciv
Class StringField
java.lang.Object
eap.freeciv.Field
eap.freeciv.SimpleField
eap.freeciv.StringField
- public class StringField
- extends SimpleField
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 |
StringField
public StringField()
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