net.agmodel.imageutil
Class PackedImage13

java.lang.Object
  |
  +--net.agmodel.imageutil.PackedImage13
All Implemented Interfaces:
Serializable, SerializableImage

public class PackedImage13
extends Object
implements SerializableImage

Title: PackedImage13

Description: A serialized verision of BufferedImage. Typically designed for loading image files from disk and transfer the loaded image (byte array) to another machine. This version is compatible with JRE 1.3.

Copyright: Copyright (c) 2002

Company:

See Also:
Serialized Form

Field Summary
(package private)  byte[] buffer
           
 int flag
           
(package private)  int height
           
(package private)  int width
           
 
Constructor Summary
PackedImage13(byte[] inBuffer, int flag, int width, int height)
          Create a mobile image from an array of bytes.
PackedImage13(File file)
           
 
Method Summary
 BufferedImage getBufferedImage()
          retrieve the BufferedImage from a SerializableImage.
 Image getImage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

byte[] buffer

flag

public int flag

width

int width

height

int height
Constructor Detail

PackedImage13

public PackedImage13(byte[] inBuffer,
                     int flag,
                     int width,
                     int height)
Create a mobile image from an array of bytes.

Parameters:
inBuffer - the array of bytes
flag - - 1=JPEG, 2=GIF

PackedImage13

public PackedImage13(File file)
Method Detail

getBufferedImage

public BufferedImage getBufferedImage()
Description copied from interface: SerializableImage
retrieve the BufferedImage from a SerializableImage.

Specified by:
getBufferedImage in interface SerializableImage
Returns:
BufferedImage

getImage

public Image getImage()