question: private boolean isMimeFormat ( long format , String primaryType ) { String nat = getNativeForFormat ( format ) ; if ( nat == null ) { return false ; } try { DataFlavor df = new DataFlavor ( nat ) ; if ( primaryType . equals ( df . getPrimaryType ( ) ) ) { return true ; } } catch ( Exception e ) { } return false ; }
target:  Returns true if and only if the name of the specified format Atom constitutes a valid MIME type with the specified primary type.