Tabnine Logo
BufferedReader.fillBuf
Code IndexAdd Tabnine to your IDE (free)

How to use
fillBuf
method
in
java.io.BufferedReader

Best Java code snippets using java.io.BufferedReader.fillBuf (Showing top 20 results out of 315)

origin: robovm/robovm

private int readChar() throws IOException {
  if (pos < end || fillBuf() != -1) {
    return buf[pos++];
  }
  return -1;
}
origin: robovm/robovm

/**
 * Peeks at the next input character, refilling the buffer if necessary. If
 * this character is a newline character ("\n"), it is discarded.
 */
final void chompNewline() throws IOException {
  if ((pos != end || fillBuf() != -1) && buf[pos] == '\n') {
    ++pos;
  }
}
origin: robovm/robovm

pos = end;
while (read < charCount) {
  if (fillBuf() == -1) {
    return read;
origin: robovm/robovm

while (true) {
  pos = end;
  if (fillBuf() == -1) {
origin: robovm/robovm

if (fillBuf() == -1) {
  break; // source is exhausted
origin: MobiVM/robovm

private int readChar() throws IOException {
  if (pos < end || fillBuf() != -1) {
    return buf[pos++];
  }
  return -1;
}
origin: ibinti/bugvm

private int readChar() throws IOException {
  if (pos < end || fillBuf() != -1) {
    return buf[pos++];
  }
  return -1;
}
origin: ibinti/bugvm

/**
 * Peeks at the next input character, refilling the buffer if necessary. If
 * this character is a newline character ("\n"), it is discarded.
 */
final void chompNewline() throws IOException {
  if ((pos != end || fillBuf() != -1) && buf[pos] == '\n') {
    ++pos;
  }
}
origin: com.gluonhq/robovm-rt

private int readChar() throws IOException {
  if (pos < end || fillBuf() != -1) {
    return buf[pos++];
  }
  return -1;
}
origin: com.gluonhq/robovm-rt

/**
 * Peeks at the next input character, refilling the buffer if necessary. If
 * this character is a newline character ("\n"), it is discarded.
 */
final void chompNewline() throws IOException {
  if ((pos != end || fillBuf() != -1) && buf[pos] == '\n') {
    ++pos;
  }
}
origin: MobiVM/robovm

/**
 * Peeks at the next input character, refilling the buffer if necessary. If
 * this character is a newline character ("\n"), it is discarded.
 */
final void chompNewline() throws IOException {
  if ((pos != end || fillBuf() != -1) && buf[pos] == '\n') {
    ++pos;
  }
}
origin: com.bugvm/bugvm-rt

private int readChar() throws IOException {
  if (pos < end || fillBuf() != -1) {
    return buf[pos++];
  }
  return -1;
}
origin: com.jtransc/jtransc-rt

/**
 * Peeks at the next input character, refilling the buffer if necessary. If
 * this character is a newline character ("\n"), it is discarded.
 */
final void chompNewline() throws IOException {
  if ((pos != end || fillBuf() != -1) && buf[pos] == '\n') {
    ++pos;
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Peeks at the next input character, refilling the buffer if necessary. If
 * this character is a newline character ("\n"), it is discarded.
 */
final void chompNewline() throws IOException {
  if ((pos != end || fillBuf() != -1) && buf[pos] == '\n') {
    ++pos;
  }
}
origin: FlexoVM/flexovm

private int readChar() throws IOException {
  if (pos < end || fillBuf() != -1) {
    return buf[pos++];
  }
  return -1;
}
origin: com.mobidevelop.robovm/robovm-rt

private int readChar() throws IOException {
  if (pos < end || fillBuf() != -1) {
    return buf[pos++];
  }
  return -1;
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Peeks at the next input character, refilling the buffer if necessary. If
 * this character is a newline character ("\n"), it is discarded.
 */
final void chompNewline() throws IOException {
  if ((pos != end || fillBuf() != -1) && buf[pos] == '\n') {
    ++pos;
  }
}
origin: com.jtransc/jtransc-rt

private int readChar() throws IOException {
  if (pos < end || fillBuf() != -1) {
    return buf[pos++];
  }
  return -1;
}
origin: FlexoVM/flexovm

/**
 * Peeks at the next input character, refilling the buffer if necessary. If
 * this character is a newline character ("\n"), it is discarded.
 */
final void chompNewline() throws IOException {
  if ((pos != end || fillBuf() != -1) && buf[pos] == '\n') {
    ++pos;
  }
}
origin: MobiVM/robovm

pos = end;
while (read < charCount) {
  if (fillBuf() == -1) {
    return read;
java.ioBufferedReaderfillBuf

Javadoc

Populates the buffer with data. It is an error to call this method when the buffer still contains data; ie. if pos < end.

Popular methods of BufferedReader

  • <init>
    Creates a buffering character-input stream that uses an input buffer of the specified size.
  • readLine
    Reads a line of text. A line is considered to be terminated by any one of a line feed ('\n'), a carr
  • close
    Closes this reader. This implementation closes the buffered source reader and releases the buffer. N
  • read
    Reads characters into a portion of an array. This method implements the general contract of the corr
  • lines
  • ready
    Tells whether this stream is ready to be read. A buffered character stream is ready if the buffer is
  • reset
    Resets the stream to the most recent mark.
  • mark
    Marks the present position in the stream. Subsequent calls to reset() will attempt to reposition the
  • skip
    Skips characters.
  • markSupported
    Tells whether this stream supports the mark() operation, which it does.
  • checkNotClosed
  • chompNewline
    Peeks at the next input character, refilling the buffer if necessary. If this character is a newline
  • checkNotClosed,
  • chompNewline,
  • isClosed,
  • maybeSwallowLF,
  • readChar,
  • fill,
  • ensureOpen,
  • read1

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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