private boolean tryPeekDelimiter(char delimiter) throws IOException {
        if (this.isEndOfFile()) {
            throw new EOFException(SR.LOG_STREAM_END_ERROR);
        }
        else {
            if ((char) this.peek() != delimiter) {
                return false;
            }
            else {
                return true;
            }
        }
    }
private boolean tryPeekDelimiter(char delimiter) throws IOException {
        if (this.isEndOfFile()) {
            throw new EOFException(SR.LOG_STREAM_END_ERROR);
        }
        else {
            if ((char) this.peek() != delimiter) {
                return false;
            }
            else {
                return true;
            }
        }
    }
private boolean tryPeekDelimiter ( char delimiter ) throws IOException { if ( this . isEndOfFile ( ) ) { throw new EOFException ( SR . LOG_STREAM_END_ERROR ) ; } else { if ( ( char ) this . peek ( ) != delimiter ) { return false ; } else { return true ; } } }
Checks to see if the next character is the delimiter expected.

@param delimiter
the delimiter to try to peek.
@return
@throws IOException
Checks to see if the next character is the delimiter expected .