|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Default implementation that uses the JDK's plain implementations. |
Method Summary | |
---|---|
java.io.ObjectInputStream |
newObjectInputStream(java.io.InputStream in)
Gets a new instance of an ObjectInputStream with the provided InputStream . |
java.io.ObjectOutputStream |
newObjectOutputStream(java.io.OutputStream out)
Gets a new instance of an ObjectOutputStream with the provided OutputStream . |
Method Detail |
---|
java.io.ObjectInputStream newObjectInputStream(java.io.InputStream in) throws java.io.IOException
ObjectInputStream
with the provided InputStream
.
in
- The input stream that should be used for the reading
java.io.IOException
- if an I/O error occurs while reading stream headerjava.io.ObjectOutputStream newObjectOutputStream(java.io.OutputStream out) throws java.io.IOException
ObjectOutputStream
with the provided OutputStream
.
out
- The output stream that should be used for the writing
java.io.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 |