01: /**
02: * Title: OpenUSS - Open Source University Support System
03: * Description: Utility Class
04: * Copyright: Copyright (c) B. Lofi Dewanto
05: * Company: University of Muenster
06: * @author B. Lofi Dewanto
07: * @version 1.0
08: */package org.openuss.utility;
09:
10: import java.io.*;
11:
12: import java.util.*;
13:
14: /**
15: * The file object.
16: * This class represents a file.
17: *
18: * @author B. Lofi Dewanto
19: * @version 1.0
20: */
21: public class FileObjectWrapper implements java.io.Serializable {
22: // Private state object
23: private byte[] data = null;
24:
25: /**
26: * Constructor with the data to save.
27: *
28: * @param the data to be saved.
29: */
30: public FileObjectWrapper(byte[] data) {
31: this .data = data;
32: }
33:
34: /**
35: * Gets the data of the file.
36: *
37: * @return the data of the file.
38: */
39: public byte[] getData() {
40: return data;
41: }
42: }
|