KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openuss > utility > FileObjectWrapper


1 /**
2  * Title: OpenUSS - Open Source University Support System
3  * Description: Utility Class
4  * Copyright: Copyright (c) B. Lofi Dewanto
5  * Company: University of Muenster
6  * @author B. Lofi Dewanto
7  * @version 1.0
8  */

9 package org.openuss.utility;
10
11 import java.io.*;
12
13 import java.util.*;
14
15
16 /**
17  * The file object.
18  * This class represents a file.
19  *
20  * @author B. Lofi Dewanto
21  * @version 1.0
22  */

23 public class FileObjectWrapper implements java.io.Serializable JavaDoc {
24     // Private state object
25
private byte[] data = null;
26
27     /**
28      * Constructor with the data to save.
29      *
30      * @param the data to be saved.
31      */

32     public FileObjectWrapper(byte[] data) {
33         this.data = data;
34     }
35
36     /**
37      * Gets the data of the file.
38      *
39      * @return the data of the file.
40      */

41     public byte[] getData() {
42         return data;
43     }
44 }
Popular Tags