public class LogOutputStream extends OutputStream
| 限定符和类型 | 字段和说明 |
|---|---|
protected Level |
level |
protected MailLogger |
logger |
| 构造器和说明 |
|---|
LogOutputStream(MailLogger logger)
Log to the specified logger.
|
protected MailLogger logger
protected Level level
public LogOutputStream(MailLogger logger)
logger - the MailLoggerpublic void write(int b)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write 在类中 OutputStreamIOExceptionprotected void log(String msg)
msg - the message to logCopyright © 2021 Oracle. All rights reserved.