lt.monarch.image.gif
Class GIFCompressor

java.lang.Object
  extended by lt.monarch.image.gif.GIFCompressor

public class GIFCompressor
extends java.lang.Object

GIFCompressor - compress a GIF file with RLE compression algorithm. This image encoding does not requires UNISYS license, but image files are larger.


Constructor Summary
Constructor and Description
GIFCompressor()
          Allows to create GIF file without LZW algorithm.
 
Method Summary
Modifier and Type Method and Description
static void GIFCompress(java.io.OutputStream dataOutput, int codeSize, byte[] toCompress)
          Crates a GIF file without LZW algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GIFCompressor

public GIFCompressor()
Allows to create GIF file without LZW algorithm.

Method Detail

GIFCompress

public static void GIFCompress(java.io.OutputStream dataOutput,
                               int codeSize,
                               byte[] toCompress)
                        throws java.io.IOException
Crates a GIF file without LZW algorithm.

Parameters:
dataOutput - output stream.
codeSize - number indicates block size.
toCompress - bytes that must be written.
Throws:
java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.