public abstract static class LineTransformationOutputStream.Delegating extends LineTransformationOutputStream
LineTransformationOutputStream.eol(byte[], int)
will typically OutputStream.write(byte[], int, int)
to out
.
Flushing or closing the decorated stream will behave properly.LineTransformationOutputStream.Delegating
Modifier and Type | Field and Description |
---|---|
protected OutputStream |
out |
Modifier | Constructor and Description |
---|---|
protected |
Delegating(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
eol, forceEol, trimEOL, write, write
write
protected final OutputStream out
protected Delegating(OutputStream out)
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class LineTransformationOutputStream
IOException
Copyright © 2004–2021. All rights reserved.