Closeable, Flushable, AutoCloseablepublic class SMTPOutputStream extends CRLFOutputStream
CRLFOutputStreamatBOL, lastbout| Constructor | Description |
|---|---|
SMTPOutputStream(OutputStream os) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
ensureAtBOL() |
Ensure we're at the beginning of a line.
|
void |
flush() |
Override flush method in FilterOutputStream.
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
write, writelnclosepublic SMTPOutputStream(OutputStream os)
public void write(int b)
throws IOException
write in class CRLFOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class CRLFOutputStreamIOExceptionpublic void flush()
flush in interface Flushableflush in class FilterOutputStreampublic void ensureAtBOL()
throws IOException
IOException - if the write failsCopyright © 2018 Oracle. All rights reserved.