|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.image.analyser.XMLReader
public class XMLReader
ImageReader object for XML document image type.
Nested Class Summary | |
---|---|
static interface |
XMLReader.Converter
This interface is to be implemented for XML to image converters. |
Constructor Summary | |
---|---|
XMLReader()
|
Method Summary | |
---|---|
FopImage.ImageInfo |
createDocument(java.io.InputStream input,
FOUserAgent ua)
Creates an ImageInfo object from an XML image read from a stream. |
java.lang.String |
getMimeType()
Returns the MIME type supported by this implementation. |
protected FopImage.ImageInfo |
loadImage(java.lang.String uri,
java.io.InputStream bis,
FOUserAgent ua)
Creates an ImageInfo object from an XML image read from a stream. |
static void |
setConverter(java.lang.String ns,
XMLReader.Converter conv)
Registers a Converter implementation with XMLReader. |
FopImage.ImageInfo |
verifySignature(java.lang.String uri,
java.io.InputStream fis,
FOUserAgent ua)
Verify image type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLReader()
Method Detail |
---|
public static void setConverter(java.lang.String ns, XMLReader.Converter conv)
ns
- The namespace to associate with this converterconv
- The actual Converter implementationpublic FopImage.ImageInfo verifySignature(java.lang.String uri, java.io.InputStream fis, FOUserAgent ua) throws java.io.IOException
ImageReader
verifySignature
in interface ImageReader
uri
- URI to the imagefis
- Image buffered input streamua
- The user agent
true
if image type is the handled one
java.io.IOException
- if an I/O error occursImageReader
public java.lang.String getMimeType()
protected FopImage.ImageInfo loadImage(java.lang.String uri, java.io.InputStream bis, FOUserAgent ua)
uri
- The URI to the imagebis
- The InputStreamua
- The user agent
public FopImage.ImageInfo createDocument(java.io.InputStream input, FOUserAgent ua)
input
- The InputStreamua
- The user agent
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |