class LengthCounter
extends java.io.OutputStream
Modifier and Type | Field and Description |
---|---|
private byte[] |
buf |
private int |
maxsize |
private int |
size |
Constructor and Description |
---|
LengthCounter(int maxsize) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
int |
getSize() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public void write(int b)
write
in class java.io.OutputStream
public void write(byte[] b, int off, int len)
write
in class java.io.OutputStream
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public int getSize()
public byte[] getBytes()