|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectits.backbone.frame.ItsData
ItsData describes the operations that ITS data types should implement. In addition to implementing the abstract methods, your subclass should be constructable from both an ItsInputStream and from a byte array.
| Constructor Summary | |
ItsData()
|
|
| Method Summary | |
abstract int |
getNetworkSize()
Return the length in bytes of this object when it is put into network format. |
void |
read(byte[] bytes)
Read the instance from a byte array. |
abstract void |
read(ItsInputStream in)
Reads the instance from an ItsInputStream. |
byte[] |
toByteArray()
Produce a byte array representation of the instance. |
abstract void |
write(ItsOutputStream out)
Write the instance to an ItsOutputStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ItsData()
| Method Detail |
public abstract void read(ItsInputStream in)
throws java.io.IOException,
ItsException
in - the ItsInputStream from which to read.
java.io.IOException - io error
ItsException - its exception
public void read(byte[] bytes)
throws java.io.IOException,
ItsException
bytes - the byte array from which to read.
java.io.IOException - io error
ItsException - its exception
public abstract void write(ItsOutputStream out)
throws java.io.IOException
out - the ItsOutputStream to which to write
java.io.IOExceptionpublic byte[] toByteArray()
public abstract int getNetworkSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||