code: public static byte [] readLine(LineReader lineReader) 
    throws IOException {
      Text out = new Text();
      long bytes = lineReader.readLine(out);
      if (bytes <= 0)
        return null;
      return out.getBytes();
    }
docs: Read a utf8 encoded line from a data input stream.
  @param lineReader LineReader to read the line from.
  @return a byte array containing the line
  @throws IOException