1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.isenshi.util;
17
18 import java.io.Serializable;
19
20 //***********************************************
21 // !! Don't edit this source file
22 // An instance of this class is saved into database.
23 //**********************************************
24
25 public class SimpleFile implements Serializable {
26
27 private static final long serialVersionUID = 4810059128779846683L;
28
29 private String contentType;
30
31 private String fileName;
32
33 private byte[] data;
34
35 public SimpleFile(String type, String name, byte[] data) {
36 this.contentType = type;
37 this.fileName = name;
38 this.data = data;
39 }
40
41 public String getContentType() {
42 return contentType;
43 }
44
45 public void setContentType(String contentType) {
46 this.contentType = contentType;
47 }
48
49 public byte[] getData() {
50 return data;
51 }
52
53 public void setData(byte[] data) {
54 this.data = data;
55 }
56
57 public String getFileName() {
58 return fileName;
59 }
60
61 public void setFileName(String fileName) {
62 this.fileName = fileName;
63 }
64
65 }