public boolean isValidFile ( RandomAccessFile raf ) throws IOException { raf . seek ( 0 ) ; String test = raf . readString ( MAGIC . length ( ) ) ; return test . equals ( MAGIC ) ; }
Check if this is a valid file for this IOServiceProvider . You must make this method thread safe ie dont keep any state .