1 17 18 19 20 package org.apache.fop.render.rtf; 21 22 import java.io.OutputStream ; 23 24 import org.apache.fop.apps.FOUserAgent; 25 import org.apache.fop.apps.MimeConstants; 26 import org.apache.fop.fo.FOEventHandler; 27 import org.apache.fop.render.AbstractFOEventHandlerMaker; 28 29 32 public class RTFFOEventHandlerMaker extends AbstractFOEventHandlerMaker { 33 34 private static final String [] MIMES = new String [] { 35 MimeConstants.MIME_RTF, 36 MimeConstants.MIME_RTF_ALT1, 37 MimeConstants.MIME_RTF_ALT2}; 38 39 40 46 public FOEventHandler makeFOEventHandler(FOUserAgent ua, OutputStream out) { 47 return new RTFHandler(ua, out); 48 } 49 50 54 public boolean needsOutputStream() { 55 return true; 56 } 57 58 62 public String [] getSupportedMimeTypes() { 63 return MIMES; 64 } 65 66 } 67 | Popular Tags |