public String getString ( String character_encoding ) throws java . io . UnsupportedEncodingException { if ( _file_mode ) throw new IllegalStateException ( "data too large" ) ; return new String ( _memory_buffer , 0 , _write_pos , character_encoding ) ; }
Returns buffered data as String using given character encoding .