01: /*
02: * UploadFile.java
03: *
04: * Created on 23 April 2000, 20:20
05: */
06:
07: package com.javelin.swinglets;
08:
09: import java.io.*;
10:
11: /**
12: *
13: * @author Default
14: * @version
15: */
16: public class UploadFile {
17: private ByteArrayOutputStream stream;
18: private String filename;
19: private String paramname;
20: private String ctype;
21:
22: UploadFile(ByteArrayOutputStream stream, String paramname,
23: String filename, String ctype) {
24: this .stream = stream;
25: this .filename = filename;
26: this .paramname = paramname;
27: this .ctype = ctype;
28: }
29:
30: public String getContentType() {
31: return ctype;
32: }
33:
34: public String getFileName() {
35: return filename;
36: }
37:
38: public String getParameterName() {
39: return paramname;
40: }
41:
42: public ByteArrayOutputStream getStream() {
43: return stream;
44: }
45: }
|