Class SerializableInputStream
java.lang.Object
java.io.InputStream
org.frankframework.management.gateway.SerializableInputStream
- All Implemented Interfaces:
Closeable
,Externalizable
,Serializable
,AutoCloseable
InputStream wrapper to allow streams to be serialized and deserialized so the (raw) binary data can be sent using Hazelcast.
When deserializing the data is temporarily written to disk. The temporary file is removed once the stream is closed.
- Author:
- Niels Meijer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for deserialization.Default constructor, to wrap the original stream in. -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
SerializableInputStream
public SerializableInputStream()Constructor for deserialization. -
SerializableInputStream
Default constructor, to wrap the original stream in.
-
-
Method Details
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-