public interface Saveable
| Modifier and Type | Method and Description |
|---|---|
default void |
fromBytes(byte[] data)
Reads this object's representation from a byte array.
|
void |
readBytes(java.io.InputStream in)
Imports this object from bytes.
|
default byte[] |
toBytes()
Gets this object's representation as bytes.
|
void |
writeBytes(java.io.OutputStream out)
Exports this object to bytes.
|
void writeBytes(java.io.OutputStream out)
throws java.io.IOException
out - the output stream to write to.java.io.IOException - if a write problem occurs.void readBytes(java.io.InputStream in)
throws java.io.IOException
in - the input stream to read from.java.io.IOException - if a read problem occurs.default byte[] toBytes()
throws java.io.IOException
java.io.IOException - if a write problem occurs.default void fromBytes(byte[] data)
throws java.io.IOException
data - the data to read.java.io.IOException - if a read problem occurs.