public interface Streamable
Modifier and Type | Method and Description |
---|---|
void |
readFrom(InputStream is)
The object implements the readFrom method to restore its contents from
the input stream.
|
void |
writeTo(OutputStream os)
The object implements the writeTo method to write its contents to
the output stream.
|
void writeTo(OutputStream os) throws IOException
os
- the stream to write the object toIOException
- an error occurs during IO operation.void readFrom(InputStream is) throws IOException
is
- the stream to read data from in order to restore the objectIOException
- an error occurs during IO operation.Copyright © 2022 ScalAgent D.T.. All rights reserved.