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
Sink
put
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 Flushable
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.