private static class UnnamedStreams.OutputCloser extends java.lang.Object implements Finalizable, java.lang.Runnable
| 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.
|
void |
run()
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitentry, initFailure, weightprivate final UnnamedStreams.WorkArea wa
public OutputCloser(UnnamedStreams.WorkArea wa)
wa - The context-local state.public void run()
finished(), required for ProcedureManager.ProcedureHelper.executeOnReturn(java.lang.Runnable, com.goldencode.p2j.security.WeightFactor).run in interface java.lang.Runnablepublic void finished()
finished in interface Finalizablepublic void deleted()
This is a no-op for unnamed streams.
deleted in interface Finalizablepublic void iterate()
iterate in interface FinalizableFinalizable.iterate()public void retry()
retry in interface FinalizableFinalizable.iterate()