congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
StrictLineReader
Code IndexAdd Tabnine to your IDE (free)

How to use
StrictLineReader
in
libcore.io

Best Java code snippets using libcore.io.StrictLineReader (Showing top 14 results out of 315)

origin: robovm/robovm

fillBuf();
fillBuf();
origin: robovm/robovm

/**
 * Read an {@code int} from a line containing its decimal representation.
 *
 * @return the value of the {@code int} from the next line.
 * @throws IOException for underlying {@code InputStream} errors or conversion error.
 * @throws EOFException for the end of source stream.
 */
public int readInt() throws IOException {
  String intString = readLine();
  try {
    return Integer.parseInt(intString);
  } catch (NumberFormatException e) {
    throw new IOException("expected an int but was \"" + intString + "\"");
  }
}
origin: com.gluonhq/robovm-rt

/**
 * Read an {@code int} from a line containing its decimal representation.
 *
 * @return the value of the {@code int} from the next line.
 * @throws IOException for underlying {@code InputStream} errors or conversion error.
 * @throws EOFException for the end of source stream.
 */
public int readInt() throws IOException {
  String intString = readLine();
  try {
    return Integer.parseInt(intString);
  } catch (NumberFormatException e) {
    throw new IOException("expected an int but was \"" + intString + "\"");
  }
}
origin: ibinti/bugvm

fillBuf();
fillBuf();
origin: MobiVM/robovm

/**
 * Read an {@code int} from a line containing its decimal representation.
 *
 * @return the value of the {@code int} from the next line.
 * @throws IOException for underlying {@code InputStream} errors or conversion error.
 * @throws EOFException for the end of source stream.
 */
public int readInt() throws IOException {
  String intString = readLine();
  try {
    return Integer.parseInt(intString);
  } catch (NumberFormatException e) {
    throw new IOException("expected an int but was \"" + intString + "\"");
  }
}
origin: com.mobidevelop.robovm/robovm-rt

fillBuf();
fillBuf();
origin: com.bugvm/bugvm-rt

/**
 * Read an {@code int} from a line containing its decimal representation.
 *
 * @return the value of the {@code int} from the next line.
 * @throws IOException for underlying {@code InputStream} errors or conversion error.
 * @throws EOFException for the end of source stream.
 */
public int readInt() throws IOException {
  String intString = readLine();
  try {
    return Integer.parseInt(intString);
  } catch (NumberFormatException e) {
    throw new IOException("expected an int but was \"" + intString + "\"");
  }
}
origin: MobiVM/robovm

fillBuf();
fillBuf();
origin: ibinti/bugvm

/**
 * Read an {@code int} from a line containing its decimal representation.
 *
 * @return the value of the {@code int} from the next line.
 * @throws IOException for underlying {@code InputStream} errors or conversion error.
 * @throws EOFException for the end of source stream.
 */
public int readInt() throws IOException {
  String intString = readLine();
  try {
    return Integer.parseInt(intString);
  } catch (NumberFormatException e) {
    throw new IOException("expected an int but was \"" + intString + "\"");
  }
}
origin: FlexoVM/flexovm

fillBuf();
fillBuf();
origin: FlexoVM/flexovm

/**
 * Read an {@code int} from a line containing its decimal representation.
 *
 * @return the value of the {@code int} from the next line.
 * @throws IOException for underlying {@code InputStream} errors or conversion error.
 * @throws EOFException for the end of source stream.
 */
public int readInt() throws IOException {
  String intString = readLine();
  try {
    return Integer.parseInt(intString);
  } catch (NumberFormatException e) {
    throw new IOException("expected an int but was \"" + intString + "\"");
  }
}
origin: com.bugvm/bugvm-rt

fillBuf();
fillBuf();
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Read an {@code int} from a line containing its decimal representation.
 *
 * @return the value of the {@code int} from the next line.
 * @throws IOException for underlying {@code InputStream} errors or conversion error.
 * @throws EOFException for the end of source stream.
 */
public int readInt() throws IOException {
  String intString = readLine();
  try {
    return Integer.parseInt(intString);
  } catch (NumberFormatException e) {
    throw new IOException("expected an int but was \"" + intString + "\"");
  }
}
origin: com.gluonhq/robovm-rt

fillBuf();
fillBuf();
libcore.ioStrictLineReader

Javadoc

Buffers input from an InputStream for reading lines. This class is used for buffered reading of lines. For purposes of this class, a line ends with "\n" or "\r\n". End of input is reported by throwing EOFException. Unterminated line at end of input is invalid and will be ignored, the caller may use hasUnterminatedLine()to detect it after catching the EOFException. This class is intended for reading input that strictly consists of lines, such as line-based cache entries or cache journal. Unlike the BufferedReader which in conjunction with InputStreamReader provides similar functionality, this class uses different end-of-input reporting and a more restrictive definition of a line. This class supports only charsets that encode '\r' and '\n' as a single byte with value 13 and 10, respectively, and the representation of no other character contains these values. We currently check in constructor that the charset is one of US-ASCII, UTF-8 and ISO-8859-1. The default charset is US_ASCII.

Most used methods

  • fillBuf
    Reads new input data into the buffer. Call only with pos == end or end == -1, depending on the desir
  • readLine
    Reads the next line. A line ends with "\n" or "\r\n", this end of line marker is not included in the

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • putExtra (Intent)
  • Kernel (java.awt.image)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now