public static String getString ( ByteBuffer buf , Charset encoding ) { return getString ( buf , 0 , buf . remaining ( ) , encoding ) ; }
Converts all remaining bytes in the buffer a String using the specified encoding . Does not move the buffer position .