Ontimize Document Management 0.032EN

com.ontimize.dms.thumbnail.extractors
Class BasicExtractor

java.lang.Object
  extended by com.ontimize.dms.thumbnail.extractors.BasicExtractor
All Implemented Interfaces:
Extractor
Direct Known Subclasses:
JAIImageExtractor, PDFRendererExtractor, TextImageExtractor

public abstract class BasicExtractor
extends java.lang.Object
implements Extractor


Field Summary
protected static int MAX_QUALITY
           
protected static int MIN_QUALITY
           
 
Constructor Summary
BasicExtractor()
           
 
Method Summary
static byte[] compress(java.awt.image.BufferedImage image, int quality)
           
static java.awt.image.BufferedImage resize(java.awt.image.BufferedImage image, java.awt.Dimension dimension, boolean aspectRatio)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ontimize.dms.thumbnail.Extractor
getImage
 

Field Detail

MIN_QUALITY

protected static int MIN_QUALITY

MAX_QUALITY

protected static int MAX_QUALITY
Constructor Detail

BasicExtractor

public BasicExtractor()
Method Detail

resize

public static java.awt.image.BufferedImage resize(java.awt.image.BufferedImage image,
                                                  java.awt.Dimension dimension,
                                                  boolean aspectRatio)

compress

public static byte[] compress(java.awt.image.BufferedImage image,
                              int quality)
                       throws java.io.IOException
Throws:
java.io.IOException

Ontimize Document Management