private void validateDatabaseHeader ( SQLiteDatabase sqliteDatabase ) { boolean validHeader = isDatabaseHeaderValid ( sqliteDatabase ) ; if ( ! validHeader ) { throw new GeoPackageException ( "GeoPackage SQLite header is not valid: " + sqliteDatabase . getPath ( ) ) ; } }
Validate the header of the database file to verify it is a sqlite database