| |
|
| java.lang.Object gnu.text.WriterManager
WriterManager | public class WriterManager implements Runnable(Code) | | Manages a collection of Writers, handling automatic closing.
This class is useful for making sure that a Writer is closed (and its
buffers flushed) when a VM exits.
A WriterManager can be usefully passed to the JDK 1.3 method
addShutdownHook in Runtime.
|
Method Summary | |
public synchronized WriterRef | register(Writer port) Register a Writer. | public boolean | registerShutdownHook() Try to register this as a shutdown hook.
true on success; false if failure (e.g. | public synchronized void | run() | public synchronized void | unregister(Object key) Unregister a Writer. |
registerShutdownHook | public boolean registerShutdownHook()(Code) | | Try to register this as a shutdown hook.
true on success; false if failure (e.g. if not JDK1.3-compatible). |
run | public synchronized void run()(Code) | | |
|
|
|