public synchronized byte[] getBuffer() {
        if (pool.isEmpty())
            return new byte[BUFFER_SIZE];
        byte[] buffer = (byte[]) pool.lastElement();
        pool.removeElementAt(pool.size() - 1);
        return buffer;
    }
public synchronized byte[] getBuffer() {
        if (pool.isEmpty())
            return new byte[BUFFER_SIZE];
        byte[] buffer = (byte[]) pool.lastElement();
        pool.removeElementAt(pool.size() - 1);
        return buffer;
    }
public synchronized byte [ ] getBuffer ( ) { if ( pool . isEmpty ( ) ) return new byte [ BUFFER_SIZE ] ; byte [ ] buffer = ( byte [ ] ) pool . lastElement ( ) ; pool . removeElementAt ( pool . size ( ) - 1 ) ; return buffer ; }
Returns a buffer (byte array) of size <code>BUFFER_SIZE</code> from the
pool. When the buffer is no longer needed, it should be put back in the
pool for future use by calling <code>putBuffer</code>.

@return a buffer
@see #putBuffer(byte[])
Returns a buffer ( byte array ) of size <code > BUFFER_SIZE< / code > from the pool . When the buffer is no longer needed it should be put back in the pool for future use by calling <code > putBuffer< / code > .