joy-core/src/main/java/org/leadpony/joy/core/BasicJsonParser.java
private boolean fillReadBuffer(int newStart) {
        if (eoi) {
            return false;
        }
        try {
            int charsToRead = readBuffer.length - newStart;
            int charsRead = this.reader.read(readBuffer, newStart, charsToRead);
            if (charsRead < 0) {
                eoi = true;
                this.readPos = this.readEnd;
                return false;
            }
            this.bufferOffset += readEnd - readStart;
            this.readStart = newStart;
            this.readEnd = newStart + charsRead;
            this.readPos = newStart;
            return true;
        } catch (IOException e) {
            throw newJsonException(Message.thatIOErrorOccurredWhileParserWasReading(), e);
        }
    }
/**
     * Fills the buffer with new characters.
     *
     * @param newStart the position to start to read.
     * @return {@code false} if the end of input was reached.
     */
Fills the buffer with new characters.
@param newStart the position to start to read.
@return  false if the end of input was reached.
Fills the buffer with new characters . @param newStart the position to start to read . @return false if the end of input was reached .
private boolean fillReadBuffer(int newStart) {
        if (eoi) {
            return false;
        }
        try {
            int charsToRead = readBuffer.length - newStart;
            int charsRead = this.reader.read(readBuffer, newStart, charsToRead);
            if (charsRead < 0) {
                eoi = true;
                this.readPos = this.readEnd;
                return false;
            }
            this.bufferOffset += readEnd - readStart;
            this.readStart = newStart;
            this.readEnd = newStart + charsRead;
            this.readPos = newStart;
            return true;
        } catch (IOException e) {
            throw newJsonException(Message.thatIOErrorOccurredWhileParserWasReading(), e);
        }
    }
private boolean fillReadBuffer ( int newStart ) { if ( eoi ) { return false ; } try { int charsToRead = readBuffer . length - newStart ; int charsRead = this . reader . read ( readBuffer , newStart , charsToRead ) ; if ( charsRead < 0 ) { eoi = true ; this . readPos = this . readEnd ; return false ; } this . bufferOffset += readEnd - readStart ; this . readStart = newStart ; this . readEnd = newStart + charsRead ; this . readPos = newStart ; return true ; } catch ( IOException e ) { throw newJsonException ( Message . thatIOErrorOccurredWhileParserWasReading ( ) , e ) ; } }
Fills the buffer with new characters.
Fills the buffer with new characters .