KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > bsf > remoting > BSFImage


1 package org.bsf.remoting;
2
3 import java.io.Serializable JavaDoc;
4
5 /**
6  * Holds informations on an image and the bytes composing the underlying
7  * image.
8  */

9 public class BSFImage implements Serializable JavaDoc{
10
11     String JavaDoc imageName;
12     byte[] imageData;
13
14     public BSFImage(String JavaDoc imageName, byte[] imageData) {
15         this.imageName = imageName;
16         this.imageData = imageData;
17     }
18
19     public String JavaDoc getImageName() {
20         return imageName;
21     }
22
23     public void setImageName(String JavaDoc imageName) {
24         this.imageName = imageName;
25     }
26
27     public byte[] getImageData() {
28         return imageData;
29     }
30
31     public void setImageData(byte[] imageData) {
32         this.imageData = imageData;
33     }
34
35 }
36
Popular Tags