mirror of https://github.com/apache/nifi.git
NIFI-9549: Delegate NonFlushableOutputStream write methods to wrapped OutputStream
Ensure that we delegate calls to write(byte[]) and write(byte[], int, int) to the underlying OutputStream for NonFlushableOutputStream, instead of allowing FilterOutputStream to iterate over every byte This closes #5642 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
56593ad12f
commit
d9b863a84b
|
@ -34,4 +34,19 @@ public class NonFlushableOutputStream extends FilterOutputStream {
|
|||
public void close() throws IOException {
|
||||
out.close();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(final byte[] b, final int off, final int len) throws IOException {
|
||||
out.write(b, off, len);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(final byte[] b) throws IOException {
|
||||
out.write(b);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(final int b) throws IOException {
|
||||
out.write(b);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue