private static class UnnamedStreams.OutputCloser extends java.lang.Object implements Finalizable
Modifier and Type | Field and Description |
---|---|
private UnnamedStreams.WorkArea |
wa
The context-local state.
|
Constructor and Description |
---|
OutputCloser(UnnamedStreams.WorkArea wa)
Create a new instance and cache the context-local state.
|
Modifier and Type | Method and Description |
---|---|
void |
deleted()
Provides a notification that the external program scope in which the object is registered is
is being deleted and the object's reference will be lost after this method is called.
|
void |
finished()
This method will be called when the current block will be popped out
of scope and will close the stream if there is no explicit
"output close" statement.
|
void |
iterate()
This method is unused.
|
void |
retry()
This method is unused.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
entry, initFailure, weight
private final UnnamedStreams.WorkArea wa
public OutputCloser(UnnamedStreams.WorkArea wa)
wa
- The context-local state.public void finished()
finished
in interface Finalizable
public void deleted()
This is a no-op for unnamed streams.
deleted
in interface Finalizable
public void iterate()
iterate
in interface Finalizable
Finalizable.iterate()
public void retry()
retry
in interface Finalizable
Finalizable.iterate()