private int readChar() throws IOException { if (pos < end || fillBuf() != -1) { return buf[pos++]; } return -1; }
/** * 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; } }
pos = end; while (read < charCount) { if (fillBuf() == -1) { return read;
while (true) { pos = end; if (fillBuf() == -1) {
if (fillBuf() == -1) { break; // source is exhausted
private int readChar() throws IOException { if (pos < end || fillBuf() != -1) { return buf[pos++]; } return -1; }
private int readChar() throws IOException { if (pos < end || fillBuf() != -1) { return buf[pos++]; } return -1; }
/** * 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; } }
private int readChar() throws IOException { if (pos < end || fillBuf() != -1) { return buf[pos++]; } return -1; }
/** * 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; } }
/** * 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; } }
private int readChar() throws IOException { if (pos < end || fillBuf() != -1) { return buf[pos++]; } return -1; }
/** * 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; } }
/** * 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; } }
private int readChar() throws IOException { if (pos < end || fillBuf() != -1) { return buf[pos++]; } return -1; }
private int readChar() throws IOException { if (pos < end || fillBuf() != -1) { return buf[pos++]; } return -1; }
/** * 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; } }
private int readChar() throws IOException { if (pos < end || fillBuf() != -1) { return buf[pos++]; } return -1; }
/** * 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; } }
pos = end; while (read < charCount) { if (fillBuf() == -1) { return read;