code: public static String string(ByteBuffer buffer, int position, int length, Charset charset) throws CharacterCodingException
  	    {
  	        ByteBuffer copy = buffer.duplicate();
  	        copy.position(position);
  	        copy.limit(copy.position() + length);
  	        return string(copy, charset);
  	    }
docs: Decode a String representation.
  
  @param buffer a byte buffer holding the string representation
  @param position the starting position in {@code buffer} to start decoding from
  @param length the number of bytes from {@code buffer} to use
  @param charset the String encoding charset
  @return the decoded string