@ Override public void flush ( ) throws IOException { if ( outStream != null ) outStream . write ( getBuffer ( ) , 0 , ( int ) pos ) ; pos = 0 ; }
writes current buffer to underlying output and resets buffer .