Code example for ByteArrayBuffer

Methods: capacity, length

0
    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);
    }