Skip to content
Snippets Groups Projects
Commit cd1470f8 authored by Vojtech Moravec's avatar Vojtech Moravec
Browse files

Extend ByteArrayOutputStream.

Extended class provide access to the underlaying buffer and number of
current bytes written.
parent 4b753c51
Branches
No related tags found
No related merge requests found
package azgracompress.io;
import java.io.ByteArrayOutputStream;
public class MemoryOutputStream extends ByteArrayOutputStream {
public MemoryOutputStream() {
super();
}
public MemoryOutputStream(final int initialBufferSize) {
super(initialBufferSize);
}
public byte[] getBuffer() {
return this.buf;
}
public int getCurrentBufferLength() {
return this.count;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment