@Override
    public int size() {
        return fullBuffer.remaining();
    }
Only call this after you have finished writing to the output stream.

@return The size in bytes
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/StagingValueOutputStream.java