Code example for ByteArrayBuffer

Methods: capacitylength

    public boolean isBound() { 
        return this.outstream != null;
    public int capacity() { 
        return this.buffer.capacity();
    public int length() { 
        return this.buffer.length();
    public int available() { 
        return capacity() - length(); 
    private void streamWrite(final byte[] b, final int off, final int len) throws IOException {
        Asserts.notNull(outstream, "Output stream");
        this.outstream.write(b, off, len);
Connect your IDE to all the code out there  Get Codota for Java