1 17 18 19 20 package org.apache.fop.render; 21 22 import java.io.OutputStream ; 23 24 import org.apache.fop.apps.FOPException; 25 import org.apache.fop.apps.FOUserAgent; 26 import org.apache.fop.fo.FOEventHandler; 27 28 32 public abstract class AbstractFOEventHandlerMaker { 33 34 41 public abstract FOEventHandler makeFOEventHandler(FOUserAgent ua, OutputStream out) 42 throws FOPException; 43 44 47 public abstract boolean needsOutputStream(); 48 49 52 public abstract String [] getSupportedMimeTypes(); 53 54 59 public boolean isMimeTypeSupported(String mimeType) { 60 String [] mimes = getSupportedMimeTypes(); 61 for (int i = 0; i < mimes.length; i++) { 62 if (mimes[i].equals(mimeType)) { 63 return true; 64 } 65 } 66 return false; 67 } 68 69 } 70 | Popular Tags |