Closeable, Flushable, AutoCloseablepublic class LogOutputStream extends OutputStream
| Modifier and Type | Field | Description |
|---|---|---|
protected Level |
level |
|
protected MailLogger |
logger |
| Constructor | Description |
|---|---|
LogOutputStream(MailLogger logger) |
Log to the specified logger.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
log(String msg) |
Log the specified message.
|
void |
write(byte[] b) |
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, flushprotected MailLogger logger
protected Level level
public LogOutputStream(MailLogger logger)
logger - the MailLoggerpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionprotected void log(String msg)
msg - the message to logCopyright © 2018 Oracle. All rights reserved.