public class SynchronizedByteCountingOutputStream extends ByteCountingOutputStream
Constructor and Description |
---|
SynchronizedByteCountingOutputStream(OutputStream out) |
SynchronizedByteCountingOutputStream(OutputStream out,
long byteCount) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
long |
getBytesWritten() |
OutputStream |
getWrappedStream() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public SynchronizedByteCountingOutputStream(OutputStream out)
public SynchronizedByteCountingOutputStream(OutputStream out, long byteCount)
public void flush() throws IOException
flush
in interface Flushable
flush
in class ByteCountingOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class ByteCountingOutputStream
IOException
public long getBytesWritten()
getBytesWritten
in class ByteCountingOutputStream
public OutputStream getWrappedStream()
getWrappedStream
in class ByteCountingOutputStream
public void write(byte[] b) throws IOException
write
in class ByteCountingOutputStream
IOException
public void write(int b) throws IOException
write
in class ByteCountingOutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class ByteCountingOutputStream
IOException
Copyright © 2016 Apache NiFi Project. All rights reserved.