org.jimageanalyst.analyzer
Class AnalyzeBmp

java.lang.Object
  extended by org.jimageanalyst.AbstractImageAnalyzer
      extended by org.jimageanalyst.analyzer.AnalyzeBmp
All Implemented Interfaces:
ImageAnalyzer

public class AnalyzeBmp
extends AbstractImageAnalyzer

Analyzer for BMP images.

Version:
$LastChangedRevision: 2 $
Author:
Oliver J. Siegmar

Constructor Summary
AnalyzeBmp()
          Initialize this analyzer.
 
Method Summary
 boolean detectHeader(byte[] data)
          Detect the image type.
 ImageInfo getInfo(Configuration configuration, java.io.InputStream inputStream)
          Extracts the meta information for the given image.
 
Methods inherited from class org.jimageanalyst.AbstractImageAnalyzer
getFormatNames, getHeaderBufSize, getMimeType, getStreamStartPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyzeBmp

public AnalyzeBmp()
Initialize this analyzer.

Method Detail

detectHeader

public boolean detectHeader(byte[] data)
Detect the image type.

Parameters:
data - the image header data
Returns:
true if this analyzer is responsible for the given image header

getInfo

public ImageInfo getInfo(Configuration configuration,
                         java.io.InputStream inputStream)
                  throws java.io.IOException,
                         InvalidDataException
Extracts the meta information for the given image.

Parameters:
configuration - the configuration to be used
inputStream - the data source object
Returns:
the meta information for the given image.
Throws:
java.io.IOException - if an IO error occurs while reading data from the data source
InvalidDataException - if the image contains invalid data


Copyright © 2006-2007. All Rights Reserved.