java.io.Closeable
, java.io.Flushable
, java.lang.AutoCloseable
public class SMTPOutputStream extends CRLFOutputStream
CRLFOutputStream
atBOL, lastb
Constructor | Description |
---|---|
SMTPOutputStream(java.io.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, writeln
public void write(int b) throws java.io.IOException
write
in class CRLFOutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class CRLFOutputStream
java.io.IOException
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.FilterOutputStream
public void ensureAtBOL() throws java.io.IOException
java.io.IOException
- if the write failsCopyright © 2018 Oracle. All rights reserved.