question: public void checkFileOkToRead ( ) throws IOException { if ( fileType == Type . MEGAN_SERVER_FILE ) return ; File file = new File ( fileName ) ; if ( ! file . canRead ( ) ) throw new IOException ( "File not readable: " + fileName ) ; switch ( fileType ) { case RMA1_FILE : { throw new IOException ( "RMA version 1 not supported: " + fileName ) ; } case RMA2_FILE : { int version = RMA2File . getRMAVersion ( file ) ; if ( version != 2 ) throw new IOException ( "RMA version (" + version + ") not supported: " + fileName ) ; if ( ! file . canWrite ( ) ) setReadOnly ( true ) ; return ; } case RMA3_FILE : case RMA6_FILE : case DAA_FILE : case MEGAN_SUMMARY_FILE : if ( ! file . canWrite ( ) ) setReadOnly ( true ) ; return ; default : throw new IOException ( "File has unknown type: " + fileName ) ; } }
target:  is the set file ok to read?