org.chromium.sdk/src/org/chromium/sdk/LineReader.java
author Eugene Ostroukhov <eugeneo@symbian.org>
Fri, 11 Jun 2010 13:33:03 -0700
changeset 372 1e408ee32d8a
parent 52 f577ea64429e
permissions -rw-r--r--
Added templates for WRT 1.1 platform services

// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.sdk;

import java.io.BufferedReader;
import java.io.IOException;

/**
 * Lets read lines similar to BufferedReader, but does not buffer.
 */
public interface LineReader {
  /**
   * Method has similar semantics to {@link BufferedReader#read(char[], int, int)} method.
   */
  int read(char[] cbuf, int off, int len) throws IOException;

  /**
   * Method has similar semantics to {@link BufferedReader#readLine()} method.
   */
  String readLine() throws IOException;
}