protected boolean isNextCharacterEscapable ( String nextLine , boolean inQuotes , int i ) { return inQuotes // we are in quotes, therefore there can be escaped quotes in here. && ( nextLine . length ( ) > ( i + 1 ) ) // there is indeed another character to check. && isCharacterEscapable ( nextLine . charAt ( i + 1 ) ) ; }
Checks to see if the character after the current index in a String is an escapable character . Meaning the next character is either a quotation character or the escape char and you are inside quotes .