question: protected void doValidateIntContents ( String path , String filename , int start , int end ) { File inFile = new File ( path , filename ) ; DataInputStream inStream = null ; Log . i ( LOG_TAG , "Validating file " + filename + " at " + path ) ; try { inStream = new DataInputStream ( new FileInputStream ( inFile ) ) ; for ( int i = start ; i < end ; ++ i ) { if ( inStream . readInt ( ) != i ) { fail ( "Unexpected value read in OBB file" ) ; } } if ( inStream != null ) { inStream . close ( ) ; } Log . i ( LOG_TAG , "Successfully validated file " + filename ) ; } catch ( FileNotFoundException e ) { fail ( "File " + inFile + " not found: " + e . toString ( ) ) ; } catch ( IOException e ) { fail ( "IOError with file " + inFile + ":" + e . toString ( ) ) ; } }
target:  Helper to validate the contents of an "int" file in an OBB. The format of the files are sequential int's, in the range of: [start..end)