View Javadoc

1   /*
2    * Copyright 2004-2006 the Seasar Foundation and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
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  }