public DOMStorableInputOutputFormat(DOMFactory factory,String description,String fileExtension,String mimeType){
  this.factory=factory;
  this.description=description;
  this.fileExtension=fileExtension;
  this.mimeType=mimeType;
  try {
    this.dataFlavor=new DataFlavor(mimeType);
  }
 catch (  ClassNotFoundException ex) {
    InternalError error=new InternalError("Unable to create data flavor for mime type:" + mimeType);
    error.initCause(ex);
    throw error;
  }
}

public DOMStorableInputOutputFormat ( DOMFactory factory , String description , String fileExtension , String mimeType ) { this . factory = factory ; this . description = description ; this . fileExtension = fileExtension ; this . mimeType = mimeType ; try { this . dataFlavor = new DataFlavor ( mimeType ) ; } catch ( ClassNotFoundException ex ) { InternalError error = new InternalError ( "Unable to create data flavor for mime type:" + mimeType ) ; error . initCause ( ex ) ; throw error ; } }
creates a new instance using the specified parameters .
