public final int peekLobStartPunctuation ( ) throws IOException { int c = skip_over_lob_whitespace ( ) ; if ( c == ' ' ) { //unread_char(c); return IonTokenConstsX . TOKEN_STRING_DOUBLE_QUOTE ; } if ( c != ' ' ) { unread_char ( c ) ; return IonTokenConstsX . TOKEN_ERROR ; } c = read_char ( ) ; if ( c != ' ' ) { unread_char ( c ) ; unread_char ( ' ' ) ; return IonTokenConstsX . TOKEN_ERROR ; } c = read_char ( ) ; if ( c != ' ' ) { unread_char ( c ) ; unread_char ( ' ' ) ; unread_char ( ' ' ) ; return IonTokenConstsX . TOKEN_ERROR ; } return IonTokenConstsX . TOKEN_STRING_TRIPLE_QUOTE ; }
peeks into the input stream to see what non - whitespace character is coming up . If it is a double quote or a triple quote this returns true as either distinguished the contents of a lob as distinctly a clob . Otherwise it returns false . In either case it unreads whatever non - whitespace it read to decide .