java.io.Closeable, java.io.Flushable, java.lang.AutoCloseablepublic class LogOutputStream
extends java.io.OutputStream
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.logging.Level |
level |
|
protected MailLogger |
logger |
| Constructor | Description |
|---|---|
LogOutputStream(MailLogger logger) |
Log to the specified logger.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
log(java.lang.String msg) |
Log the specified message.
|
void |
write(byte[] b) |
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
protected MailLogger logger
protected java.util.logging.Level level
public LogOutputStream(MailLogger logger)
logger - the MailLoggerpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionprotected void log(java.lang.String msg)
msg - the message to logCopyright © 2018 Oracle. All rights reserved.