@ Nonnull public String getAsString ( @ Nonnull final Charset aCharset ) { return new String ( m_aBuffer . array ( ) , m_aBuffer . arrayOffset ( ) , m_aBuffer . position ( ) , aCharset ) ; }
Get the content as a string without modifying the buffer . This works only if the contained ByteBuffer has a backing array .