E - The type of the entries.@NotThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public final class DisconnectingOutputShop<E extends Entry> extends DecoratingOutputShop<E,OutputShop<E>>
DisconnectingInputShop| Modifier and Type | Class and Description |
|---|---|
private class |
DisconnectingOutputShop.DisconnectableOutputStream |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
closed |
delegate| Constructor and Description |
|---|
DisconnectingOutputShop(OutputShop<E> output)
Constructs a disconnecting output shop.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
assertNotClosed() |
void |
close() |
OutputSocket<? extends E> |
getOutputSocket(E entry)
Returns an output socket for writing to the given entry.
|
getEntry, getSize, iterator, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntry, getSize, iteratorpublic DisconnectingOutputShop(OutputShop<E> output)
output - the shop to decorate.private void assertNotClosed()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class DecoratingOutputShop<E extends Entry,OutputShop<E extends Entry>>IOExceptionpublic final OutputSocket<? extends E> getOutputSocket(E entry)
OutputServicegetOutputSocket in interface OutputService<E extends Entry>getOutputSocket in class DecoratingOutputShop<E extends Entry,OutputShop<E extends Entry>>entry - the entry, which will be the
local target of the returned
output socket.Copyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.