CRLFOutputStream
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | flush()
Overrides java. Implements java. |
| public void | write(int
the b)byte.Overrides com. byte to this output stream.
|
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides com. len bytes from the specified
byte array starting at offset off to
this output stream.
|
| SMTPOutputStream | back to summary |
|---|---|
| public SMTPOutputStream(OutputStream os) | |
| ensureAtBOL | back to summary |
|---|---|
| public void ensureAtBOL() throws IOException Ensure we're at the beginning of a line. Write CRLF if not.
| |
| flush | back to summary |
|---|---|
| public void flush() Overrides java. Implements java. Override flush method in FilterOutputStream. The MimeMessage writeTo method flushes its buffer at the end, but we don't want to flush data out to the socket until we've also written the terminating "\r\n.\r\n". We buffer nothing so there's nothing to flush. We depend on the fact that CRLFOutputStream also buffers nothing. SMTPTransport will manually flush the socket before reading the response.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Overrides com. Doc from java. Writes the specified
The
Implements the abstract
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides com. Doc from java. Writes
| |