org.apache.fop.image.analyser
Class XMLReader
java.lang.Object
org.apache.fop.image.analyser.XMLReader
- ImageReader
public class XMLReader
extends java.lang.Object
ImageReader object for XML document image type.
static interface | XMLReader.Converter - This interface is to be implemented for XML to image converters.
|
createDocument
public FopImage.ImageInfo createDocument(InputStream input,
FOUserAgent ua)
Creates an ImageInfo object from an XML image read from a stream.
input
- The InputStreamua
- The user agent
- An ImageInfo object describing the image
getMimeType
public String getMimeType()
Returns the MIME type supported by this implementation.
loadImage
protected FopImage.ImageInfo loadImage(String uri,
InputStream bis,
FOUserAgent ua)
Creates an ImageInfo object from an XML image read from a stream.
(todo) This means the external svg document will be loaded twice. Possibly need
a slightly different design for the image stuff.
uri
- The URI to the imagebis
- The InputStreamua
- The user agent
- An ImageInfo object describing the image
setConverter
public static void setConverter(String ns,
XMLReader.Converter conv)
Registers a Converter implementation with XMLReader.
ns
- The namespace to associate with this converterconv
- The actual Converter implementation
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.