public final class CountOutputStream extends OutputStream
OutputStream
that counts the written bytes.
Modifier and Type | Method and Description |
---|---|
int |
getBytesWritten() |
void |
write(byte[] buf)
Counts the written bytes.
|
void |
write(byte[] buf, int off, int len)
Counts the written bytes.
|
void |
write(int b)
Counts the written bytes.
|
close, flush
public void write(byte[] buf, int off, int len) throws IOException
write
in class OutputStream
IOException
OutputStream.write(byte[], int, int)
public void write(byte[] buf) throws IOException
write
in class OutputStream
IOException
OutputStream.write(byte[])
public void write(int b) throws IOException
write
in class OutputStream
IOException
OutputStream.write(int)
public int getBytesWritten()
Copyright © 1998–2019. All rights reserved.