comics.core
Class ComicImage

java.lang.Object
  extended bycomics.core.ComicImage

public class ComicImage
extends java.lang.Object

This class holds a byte[] with the image for the comic retrieved and a String with the original filename for the image.

Author:
Lennart Martens

Constructor Summary
ComicImage(java.lang.String aFilename, byte[] aImage)
          The constructor initializes the filename and image variables.
 
Method Summary
 java.lang.String getFilename()
          This method reports on the original filename of the comic image.
 byte[] getImage()
          This method reports on the byte[] that constitutes the image file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComicImage

public ComicImage(java.lang.String aFilename,
                  byte[] aImage)
The constructor initializes the filename and image variables.

Parameters:
aFilename - String with the original filename of the comic image.
aImage - byte[] with the binary contents of the image file.
Method Detail

getFilename

public java.lang.String getFilename()
This method reports on the original filename of the comic image.

Returns:
String with the filename.

getImage

public byte[] getImage()
This method reports on the byte[] that constitutes the image file.

Returns:
byte[] with the comic image file contents.


Copyright © Lennart Martens. All Rights Reserved.