public class ExtraDotOutputStream extends CRLFOutputStream
LAST_WAS_CR, LAST_WAS_LF, LAST_WAS_OTHER, startOfLine, statusLast| Constructor and Description |
|---|
ExtraDotOutputStream(java.io.OutputStream out)
Constructor that wraps an OutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(int b)
Writes a byte to the stream, adding dots where appropriate.
|
protected void |
writeChunk(byte[] buffer,
int offset,
int length)
Overrides super writeChunk in order to add a "." if the previous chunk ended with
a new line and a new chunk starts with "."
|
checkCRLFTerminator, writepublic ExtraDotOutputStream(java.io.OutputStream out)
out - the OutputStream to be wrappedprotected void writeChunk(byte[] buffer,
int offset,
int length)
throws java.io.IOException
writeChunk in class CRLFOutputStreamjava.io.IOExceptionCRLFOutputStream.writeChunk(byte[], int, int)public void write(int b)
throws java.io.IOException
write in class CRLFOutputStreamb - the byte to writejava.io.IOException - if an error occurs writing the byteCopyright © 2006-2013. All Rights Reserved.