class LineReader implements Closeable {

  public int readLine(Text str, int maxLineLength,
                      int maxBytesToConsume) throws IOException {
    if (this.recordDelimiterBytes != null) {
      return readCustomLine(str, maxLineLength, maxBytesToConsume);
    } else {
      return readDefaultLine(str, maxLineLength, maxBytesToConsume);
    }
  }

  public  LineReader(InputStream in);
  public  LineReader(InputStream in, int bufferSize);
  public  LineReader(InputStream in, Configuration conf);
  public  LineReader(InputStream in, byte[] recordDelimiterBytes);
  public  LineReader(InputStream in, int bufferSize,
      byte[] recordDelimiterBytes);
  public  LineReader(InputStream in, Configuration conf,
      byte[] recordDelimiterBytes);

}