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 Flushableflush in class ByteCountingOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ByteCountingOutputStreamIOExceptionpublic long getBytesWritten()
getBytesWritten in class ByteCountingOutputStreampublic OutputStream getWrappedStream()
getWrappedStream in class ByteCountingOutputStreampublic void write(byte[] b)
throws IOException
write in class ByteCountingOutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class ByteCountingOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class ByteCountingOutputStreamIOExceptionCopyright © 2019 Apache NiFi Project. All rights reserved.