T - the object typepublic static final class DefaultSerialization.ObjectSink<T> extends Object implements Sink<T>
ObjectOutput adapter implementation of Sink.| Constructor and Description |
|---|
ObjectSink(ObjectOutput output)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
put(T object)
Puts an object to this sink.
|
public ObjectSink(ObjectOutput output)
output - the target ObjectOutput.public void put(T object) throws IOException, InterruptedException
Sinkput in interface Sink<T>object - the target objectIOException - if failed to put the object by I/O errorInterruptedException - if interrupted while putting the objectpublic void flush()
throws IOException
flush in interface FlushableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.