1 package org.apache.torque.mojo.morph;
2
3 import java.io.InputStream;
4 import java.io.OutputStream;
5
6
7
8
9
10 public class MorphRequest {
11
12 String name;
13 String encoding;
14 InputStream inputStream;
15 OutputStream outputStream;
16
17 public MorphRequest() {
18 this(null, null, null);
19 }
20
21 public MorphRequest(String filename, InputStream inputStream, OutputStream outputStream) {
22 super();
23 this.name = filename;
24 this.inputStream = inputStream;
25 this.outputStream = outputStream;
26 }
27
28 public InputStream getInputStream() {
29 return inputStream;
30 }
31
32 public void setInputStream(InputStream oldData) {
33 this.inputStream = oldData;
34 }
35
36 public OutputStream getOutputStream() {
37 return outputStream;
38 }
39
40 public void setOutputStream(OutputStream newData) {
41 this.outputStream = newData;
42 }
43
44 public String getName() {
45 return name;
46 }
47
48 public void setName(String filename) {
49 this.name = filename;
50 }
51
52 public String getEncoding() {
53 return encoding;
54 }
55
56 public void setEncoding(String encoding) {
57 this.encoding = encoding;
58 }
59
60 }