|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataCodeable
This interface is implemented by classes which may be serialized to
a DataOutput
instance and deserialized from a DataInput
instance.
By convention, each implementation should provide for a static
readDataInstance(DataInput)
method, which constructs a new instance from the stream:
import java.io.DataInput; import java.io.DataOutput; class MyDataCodeable { public static MyDataCodeable readDataInstance(DataInput in) throws IOException { // read fields, construct new instance... } public void writeData(DataOutput out) throws IOException { // write fields... } }
DataCodingHelper
Method Summary | |
---|---|
void |
writeData(java.io.DataOutput out)
Write fields of this instance to the given DataOutput instance. |
Method Detail |
---|
void writeData(java.io.DataOutput out) throws java.io.IOException
DataOutput
instance.
out
- The output to write to.
java.io.IOException
- Upon write errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |