/Users/lyon/j4p/src/futils/FileStore.java
|
1 package futils;
2
3 import java.io.File;
4 import java.io.Serializable;
5
6 /**
7 * DocJava, Inc.
8 * http://www.docjava.com
9 * Programmer: dlyon
10 * Date: Sep 28, 2004
11 * Time: 2:54:41 PM
12 */
13 public class FileStore implements Serializable {
14 public String fileName;
15 public byte fileData[];
16
17 public FileStore(File f) {
18 fileData = Futil.readBytes(f);
19 fileName = f.getAbsolutePath();
20 System.out.println("read:"+fileData.length);
21 }
22 public FileStore(File f, byte b[]){
23 fileName = f.getAbsolutePath();
24 fileData = b;
25 }
26
27 public String getFileName() {
28 return fileName;
29 }
30
31 public byte[] getFileData() {
32 return fileData;
33 }
34 }