RawText#getBufferSize() bytes is
performed and in case of binary files, canonicalization is turned off (for
the complete file).
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private int | |
| private int | |
| private boolean | |
| private boolean | |
| private byte[] | |
| private final OutputStream |
| Access | Constructor and Description |
|---|---|
| public | AutoCRLFOutputStream(OutputStream
a out)java. object.Constructor for AutoCRLFOutputStream. |
| public | AutoCRLFOutputStream(OutputStream
a out, boolean java. object.whether binaries should be detected detectBinary)Constructor for AutoCRLFOutputStream. |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| private void | |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[]
the data. b)Overrides java. Writes |
| public void | write(byte[]
the data. b, int the start offset in the data. startOff, int the number of bytes to write. startLen)Overrides java. Writes |
| binbuf | back to summary |
|---|---|
| private byte[] binbuf | |
| binbufcnt | back to summary |
|---|---|
| private int binbufcnt | |
| buf | back to summary |
|---|---|
| private int buf | |
| detectBinary | back to summary |
|---|---|
| private boolean detectBinary | |
| isBinary | back to summary |
|---|---|
| private boolean isBinary | |
| onebytebuf | back to summary |
|---|---|
| private byte[] onebytebuf | |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| AutoCRLFOutputStream | back to summary |
|---|---|
| public AutoCRLFOutputStream(OutputStream out) Constructor for AutoCRLFOutputStream.
| |
| AutoCRLFOutputStream | back to summary |
|---|---|
| public AutoCRLFOutputStream(OutputStream out, boolean detectBinary) Constructor for AutoCRLFOutputStream.
| |
| buffer | back to summary |
|---|---|
| private int buffer(byte[] b, int off, int len) throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| decideMode | back to summary |
|---|---|
| private void decideMode(boolean complete) throws IOException | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int startOff, int startLen) throws IOException Overrides java. Doc from java. Writes
If
If
| |