private class DisconnectingOutputShop.Output extends DecoratingOutputSocket<E>
| Constructor and Description |
|---|
DisconnectingOutputShop.Output(OutputSocket<? extends E> output) |
| Modifier and Type | Method and Description |
|---|---|
protected OutputSocket<? extends E> |
getBoundSocket()
Binds the delegate socket to this socket and returns it.
|
OutputStream |
newOutputStream()
Returns a new output stream for writing bytes to the
local target. |
getDelegate, toStringgetLocalTarget, newSeekableByteChannelbind, connect, getPeerTargetDisconnectingOutputShop.Output(OutputSocket<? extends E> output)
protected OutputSocket<? extends E> getBoundSocket() throws IOException
DelegatingOutputSocketgetBoundSocket in class DelegatingOutputSocket<E extends Entry>IOException - On any I/O failure.public OutputStream newOutputStream() throws IOException
OutputSocketlocal target.
Implementations must enable calling this method any number of times.
Furthermore, the returned output stream should not be buffered.
Buffering should be addressed by the caller instead - see
IOSocket.copy(de.schlichtherle.truezip.socket.InputSocket<?>, de.schlichtherle.truezip.socket.OutputSocket<?>).
newOutputStream in class DelegatingOutputSocket<E extends Entry>IOException - On any I/O failure.Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.