public void flush() throws IOException
    {
        if (output != null)
        {
            refreshBuffer();
        }
    }
Flushes the stream and forces any buffered bytes to be written. This does not flush the underlying OutputStream.
protostuff-core/src/test/java/io/protostuff/CodedOutput.java