org.ujac.print.tag
Class BaseImageBuilder

java.lang.Object
  extended by org.ujac.print.tag.BaseImageBuilder
All Implemented Interfaces:
ImageBuilder
Direct Known Subclasses:
RasterImageBuilder, SvgImageBuilder

public abstract class BaseImageBuilder
extends Object
implements ImageBuilder

Name: BaseImageBuilder
Description: Base image builder class.

Author:
lauerc

Constructor Summary
BaseImageBuilder()
           
 
Method Summary
protected  boolean isXml(byte[] imageData)
          Checks whether the image data contains an XML document or not.
protected  byte[] uncompress(byte[] imageData)
          Un-compressing the given image data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ujac.print.tag.ImageBuilder
buildImage, checkFormat
 

Constructor Detail

BaseImageBuilder

public BaseImageBuilder()
Method Detail

isXml

protected boolean isXml(byte[] imageData)
Checks whether the image data contains an XML document or not.

Parameters:
imageData - The image data as an byte array.
Returns:
true, if the image contains an XML document, else false.

uncompress

protected byte[] uncompress(byte[] imageData)
                     throws IOException
Un-compressing the given image data.

Parameters:
imageData - The image data array.
Returns:
The un-compressed data.
Throws:
IOException - In case the data was not zip compressed.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.