protected static boolean isDelimiter(String piece, String previousPiece, String endDelimiter) {
    """
	Returns true if the input is a delimiter in one of the popular RDBMSs. Recognized delimiters are: semicolon (;),
	a slash (as the only content) or the word GO (as the only content).
	@param piece the input line to test
	@param previousPiece the characters in the input stream that came before piece
	@param endDelimiter ??? (need to see this in a debugger to find out)
    """
        if (endDelimiter == null) {
            return ";".equals(piece) || (("go".equalsIgnoreCase(piece) || "/".equals(piece)) && ((previousPiece ==
                null) || previousPiece.endsWith("\n")));
        } else {
            if (endDelimiter.length() == 1) {
                return piece.toLowerCase().equalsIgnoreCase(endDelimiter.toLowerCase());
            } else {
                return piece.toLowerCase().matches(endDelimiter.toLowerCase()) || (previousPiece+piece).toLowerCase().matches("[\\s\n\r]*"+endDelimiter.toLowerCase());
            }
        }
    }
protected static boolean isDelimiter(String piece, String previousPiece, String endDelimiter) {
        if (endDelimiter == null) {
            return ";".equals(piece) || (("go".equalsIgnoreCase(piece) || "/".equals(piece)) && ((previousPiece ==
                null) || previousPiece.endsWith("\n")));
        } else {
            if (endDelimiter.length() == 1) {
                return piece.toLowerCase().equalsIgnoreCase(endDelimiter.toLowerCase());
            } else {
                return piece.toLowerCase().matches(endDelimiter.toLowerCase()) || (previousPiece+piece).toLowerCase().matches("[\\s\n\r]*"+endDelimiter.toLowerCase());
            }
        }
    }
protected static boolean isDelimiter ( String piece , String previousPiece , String endDelimiter ) { if ( endDelimiter == null ) { return ";" . equals ( piece ) || ( ( "go" . equalsIgnoreCase ( piece ) || "/" . equals ( piece ) ) && ( ( previousPiece == null ) || previousPiece . endsWith ( "\n" ) ) ) ; } else { if ( endDelimiter . length ( ) == 1 ) { return piece . toLowerCase ( ) . equalsIgnoreCase ( endDelimiter . toLowerCase ( ) ) ; } else { return piece . toLowerCase ( ) . matches ( endDelimiter . toLowerCase ( ) ) || ( previousPiece + piece ) . toLowerCase ( ) . matches ( "[\\s\n\r]*" + endDelimiter . toLowerCase ( ) ) ; } } }
Returns true if the input is a delimiter in one of the popular RDBMSs. Recognized delimiters are: semicolon (;),
a slash (as the only content) or the word GO (as the only content).
@param piece the input line to test
@param previousPiece the characters in the input stream that came before piece
@param endDelimiter ??? (need to see this in a debugger to find out)
Returns true if the input is a delimiter in one of the popular RDBMSs . Recognized delimiters are : semicolon ( ; ) a slash ( as the only content ) or the word GO ( as the only content ) .