question: protected void doValidateZeroLongFile ( String path , String filename , long size , boolean checkContents ) { 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 ) ) ; if ( checkContents ) { for ( long i = 0 ; i < size ; ++ i ) { if ( inStream . readLong ( ) != 0 ) { fail ( "Unexpected value read in OBB file" + filename ) ; } } } if ( inStream != null ) { inStream . close ( ) ; } Log . i ( LOG_TAG , "File " + filename + " successfully verified for " + size + " zeros" ) ; } catch ( IOException e ) { fail ( "IOError with file " + inFile + ":" + e . toString ( ) ) ; } }
target:  Helper to validate the contents of a "long" file on our OBBs The format of the files are sequential 0's of type long