View Javadoc
1 /*** 2 * Created by IntelliJ IDEA. 3 * User: Lennart 4 * Date: 22-nov-2003 5 * Time: 15:43:22 6 */ 7 package comics.core; 8 9 /* 10 * CVS information: 11 * 12 * $Revision: 1.1 $ 13 * $Date: 2003/12/04 14:29:44 $ 14 */ 15 16 /*** 17 * This class holds a byte[] with the image for the comic retrieved and a String with 18 * the original filename for the image. 19 * 20 * @author Lennart Martens 21 */ 22 public class ComicImage { 23 24 /*** 25 * The original filename for the comic image. 26 */ 27 private String iFilename = null; 28 29 /*** 30 * The byte[] constituting the image. 31 */ 32 private byte[] iImage = null; 33 34 /*** 35 * The constructor initializes the filename and image variables. 36 * 37 * @param aFilename String with the original filename of the comic image. 38 * @param aImage byte[] with the binary contents of the image file. 39 */ 40 public ComicImage(String aFilename, byte[] aImage) { 41 this.iFilename = aFilename; 42 this.iImage = aImage; 43 } 44 45 /*** 46 * This method reports on the original filename of the comic image. 47 * 48 * @return String with the filename. 49 */ 50 public String getFilename() { 51 return this.iFilename; 52 } 53 54 /*** 55 * This method reports on the byte[] that constitutes the image file. 56 * 57 * @return byte[] with the comic image file contents. 58 */ 59 public byte[] getImage() { 60 return this.iImage; 61 } 62 }

This page was automatically generated by Maven