org.jfor.jfor.tools.jpeg
Class EncoderWrapper

java.lang.Object
  extended byorg.jfor.jfor.tools.jpeg.EncoderWrapper
All Implemented Interfaces:
IJpegEncoder

class EncoderWrapper
extends java.lang.Object
implements IJpegEncoder

Adapts our JPEG Encoder to IJpegEncoder

Author:
bdelacretaz@codeconsult.ch

Constructor Summary
(package private) EncoderWrapper()
           
 
Method Summary
 byte[] encodeJPEG(int quality, byte[] data)
          encode the given data in JPEG
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncoderWrapper

EncoderWrapper()
Method Detail

encodeJPEG

public byte[] encodeJPEG(int quality,
                         byte[] data)
                  throws JPEGException
encode the given data in JPEG

Specified by:
encodeJPEG in interface IJpegEncoder
Parameters:
data - Byte array with data of a gif or tif image
Throws:
JPEGException - On error