protected void readFileId ( ) throws IOException { byte [ ] b = new byte [ HEADER . length ] ; in . readFully ( b ) ; if ( ! Arrays . equals ( b , HEADER ) ) { throw new IOException ( "file_id_string does not match. got: " + new String ( b , Charsets . ISO_8859_1 ) ) ; } }
Read the magic at the beginning of the file .