public abstract class AbstractLoggingWriter
extends java.io.Writer
| Modifier and Type | Field and Description |
|---|---|
private java.lang.StringBuilder |
buffer |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLoggingWriter()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
protected abstract java.util.logging.Level |
getLevel()
Get the level at which to log.
|
protected abstract java.util.logging.Logger |
getLogger()
Get the logger to use.
|
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
protected AbstractLoggingWriter()
public void write(int c)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOExceptionprotected abstract java.util.logging.Logger getLogger()
protected abstract java.util.logging.Level getLevel()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOException