fop 0.94

org.apache.fop.image.analyser
Class BMPReader

java.lang.Object
  extended by org.apache.fop.image.analyser.BMPReader
All Implemented Interfaces:
ImageReader

public class BMPReader
extends java.lang.Object
implements ImageReader

ImageReader object for BMP image type.

Version:
$Id: BMPReader.java 540052 2007-05-21 07:59:05Z jeremias $
Author:
Pankaj Narula

Field Summary
protected static int BMP_SIG_LENGTH
          Length of the BMP header
 
Constructor Summary
BMPReader()
           
 
Method Summary
 java.lang.String getMimeType()
          Returns the MIME type supported by this implementation.
 FopImage.ImageInfo verifySignature(java.lang.String uri, java.io.InputStream bis, FOUserAgent ua)
          Verify image type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BMP_SIG_LENGTH

protected static final int BMP_SIG_LENGTH
Length of the BMP header

See Also:
Constant Field Values
Constructor Detail

BMPReader

public BMPReader()
Method Detail

verifySignature

public FopImage.ImageInfo verifySignature(java.lang.String uri,
                                          java.io.InputStream bis,
                                          FOUserAgent ua)
                                   throws java.io.IOException
Description copied from interface: ImageReader
Verify image type. If the stream does not contain image data expected by the reader it must reset the stream to the start. This is so that the next reader can start reading from the start. The reader must not close the stream unless it can handle the image and it has read the information.

Specified by:
verifySignature in interface ImageReader
Parameters:
uri - URI to the image
bis - Image buffered input stream
ua - The user agent
Returns:
true if image type is the handled one
Throws:
java.io.IOException - if an I/O error occurs
See Also:
ImageReader

getMimeType

public java.lang.String getMimeType()
Returns the MIME type supported by this implementation.

Returns:
The MIME type

fop 0.94

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.