question: private void refreshBuffer ( ) throws IOException { if ( output == null ) { throw new OutOfSpaceException ( ) ; } output . write ( buffer , 0 , position ) ; position = 0 ; }
target:  Internal helper that writes the current buffer to the output. The buffer position is reset to its initial value when this returns.