public static boolean parseInsertKeyword ( final char [ ] query , int offset ) { if ( query . length < ( offset + 7 ) ) { return false ; } return ( query [ offset ] | 32 ) == ' ' && ( query [ offset + 1 ] | 32 ) == ' ' && ( query [ offset + 2 ] | 32 ) == ' ' && ( query [ offset + 3 ] | 32 ) == ' ' && ( query [ offset + 4 ] | 32 ) == ' ' && ( query [ offset + 5 ] | 32 ) == ' ' ; }
Parse string to check presence of INSERT keyword regardless of case .