public final class Handlers
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
Handlers() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Runnable |
flusher(java.util.logging.Handler handler)
Create a
Runnable task that flushes a handler. |
static FlushableCloseable |
wrap(java.util.logging.Handler handler)
Create a wrapper that exposes the handler's close and flush methods via the I/O API.
|
public static FlushableCloseable wrap(java.util.logging.Handler handler)
handler
- the logging handlerpublic static java.lang.Runnable flusher(java.util.logging.Handler handler)
Runnable
task that flushes a handler.handler
- the handler