protected void makeFileSubType ( ) { // determine file type Key key = findKey ( GempakStation . SLAT ) ; if ( key == null ) throw new IllegalStateException ( "File does not have key=" + GempakStation . SLAT ) ; String latType = key . type ; Key dateKey = findKey ( DATE ) ; if ( dateKey != null && ! dateKey . type . equals ( latType ) ) { if ( latType . equals ( ROW ) ) { subType = CLIMATE ; } else { subType = STANDARD ; } } else { subType = SHIP ; } }
Set the file subType .