code: public static final String read(ReadableByteChannel ch, int length, Charset charset) throws IOException
      {
          return new String(read(ch, length), charset);
      }
docs: Read length bytes from channel and constructs a String using given charset.
  Throws EOFException if couldn't read length bytes because of eof.
  @param ch
  @param length
  @param charset
  @return
  @throws IOException