01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /* $Id: TIFFRendererMaker.java 542237 2007-05-28 14:31:24Z jeremias $ */
19:
20: package org.apache.fop.render.bitmap;
21:
22: import org.apache.fop.apps.FOUserAgent;
23: import org.apache.fop.apps.MimeConstants;
24: import org.apache.fop.render.AbstractRendererMaker;
25: import org.apache.fop.render.Renderer;
26: import org.apache.fop.render.RendererConfigurator;
27:
28: /**
29: * RendererMaker for the TIFF Renderer.
30: */
31: public class TIFFRendererMaker extends AbstractRendererMaker {
32:
33: private static final String[] MIMES = new String[] { MimeConstants.MIME_TIFF };
34:
35: /** @see org.apache.fop.render.AbstractRendererMaker#makeRenderer(FOUserAgent) */
36: public Renderer makeRenderer(FOUserAgent userAgent) {
37: return new TIFFRenderer();
38: }
39:
40: /** @see org.apache.fop.render.AbstractRendererMaker#getConfigurator(FOUserAgent) */
41: public RendererConfigurator getConfigurator(FOUserAgent userAgent) {
42: return new TIFFRendererConfigurator(userAgent);
43: }
44:
45: /** @see org.apache.fop.render.AbstractRendererMaker#needsOutputStream() */
46: public boolean needsOutputStream() {
47: return true;
48: }
49:
50: /** @see org.apache.fop.render.AbstractRendererMaker#getSupportedMimeTypes() */
51: public String[] getSupportedMimeTypes() {
52: return MIMES;
53: }
54:
55: }
|