public void clear() {
        isAvailableForWriting = true;
        if (pooledByteBuffer != null) {
            pooledByteBuffer.clear();
        }
    }
Clears the underlying buffer if there is one.
stroom-bytebuffer/src/main/java/stroom/bytebuffer/PooledByteBufferOutputStream.java