|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Deprecated public interface IObjectStreamFactory
Interface for serializing and deserializing so that we can vary the implementation of the
ObjectOutputStream and ObjectInputStream implementations.
Objects.objectToByteArray(Object),
Objects.byteArrayToObject(byte[])| Nested Class Summary | |
|---|---|
static class |
IObjectStreamFactory.DefaultObjectStreamFactory
Deprecated. Default implementation that uses the JDK's plain implementations. |
| Method Summary | |
|---|---|
ObjectInputStream |
newObjectInputStream(InputStream in)
Deprecated. Gets a new instance of an ObjectInputStream with the provided InputStream. |
ObjectOutputStream |
newObjectOutputStream(OutputStream out)
Deprecated. Gets a new instance of an ObjectOutputStream with the provided OutputStream. |
| Method Detail |
|---|
ObjectInputStream newObjectInputStream(InputStream in)
throws IOException
ObjectInputStream with the provided InputStream.
in - The input stream that should be used for the reading
IOException - if an I/O error occurs while reading stream header
ObjectOutputStream newObjectOutputStream(OutputStream out)
throws IOException
ObjectOutputStream with the provided OutputStream.
out - The output stream that should be used for the writing
IOException - if an I/O error occurs while writing stream header
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||