T
- target object typepublic interface Serialization<T>
Modifier and Type | Method and Description |
---|---|
Sink<T> |
createSink(OutputStream stream)
Creates a new
Sink using the OutputStream . |
Source<T> |
createSource(InputStream stream)
Creates a new
Source using the InputStream . |
Source<T> createSource(InputStream stream) throws IOException, InterruptedException
Source
using the InputStream
.stream
- the InputStream
which contains serialized formSource
IOException
- if failed to create a source by I/O errorInterruptedException
- if interrupted while preparing the sourceSink<T> createSink(OutputStream stream) throws IOException, InterruptedException
Sink
using the OutputStream
.stream
- the OutputStream
which contains serialized formSink
IOException
- if failed to create a sink by I/O errorInterruptedException
- if interrupted while preparing the sinkCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.