class EndstreamOutputStream
extends java.io.BufferedOutputStream
Modifier and Type | Field and Description |
---|---|
private boolean |
hasCR |
private boolean |
hasLF |
private boolean |
mustFilter |
private int |
pos |
Constructor and Description |
---|
EndstreamOutputStream(java.io.OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
flush()
write out a single CR if one was kept.
|
void |
write(byte[] b,
int off,
int len)
Write CR and/or LF that were kept, then writes len bytes from the
specified byte array starting at offset off to this output stream,
except trailing CR, CR LF, or LF.
|
private boolean hasCR
private boolean hasLF
private int pos
private boolean mustFilter
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.BufferedOutputStream
b
- byte array.off
- offset.len
- length of segment to write.java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.BufferedOutputStream
java.io.IOException