public class ByteCountingOutputStream
extends org.apache.commons.io.output.ProxyOutputStream
out| Constructor and Description |
|---|
ByteCountingOutputStream(OutputStream out,
Counter counter)
Constructs a ByteCountingOutputStream
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public ByteCountingOutputStream(OutputStream out, Counter counter)
out - OutputStream to be wrappedcounter - PCP metric counter to be updatedpublic void write(byte[] b)
throws IOException
write in class org.apache.commons.io.output.ProxyOutputStreamIOExceptionOutputStream.write(byte[])public void write(byte[] b,
int off,
int len)
throws IOException
write in class org.apache.commons.io.output.ProxyOutputStreamIOExceptionOutputStream.write(byte[], int, int)public void write(int b)
throws IOException
write in class org.apache.commons.io.output.ProxyOutputStreamIOExceptionOutputStream.write(int)Copyright © 2009–2019 Performance Co-Pilot. All rights reserved.