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 | 0 | this(null, null, null); |
19 | 0 | } |
20 | |
|
21 | |
public MorphRequest(String filename, InputStream inputStream, OutputStream outputStream) { |
22 | 0 | super(); |
23 | 0 | this.name = filename; |
24 | 0 | this.inputStream = inputStream; |
25 | 0 | this.outputStream = outputStream; |
26 | 0 | } |
27 | |
|
28 | |
public InputStream getInputStream() { |
29 | 0 | return inputStream; |
30 | |
} |
31 | |
|
32 | |
public void setInputStream(InputStream oldData) { |
33 | 0 | this.inputStream = oldData; |
34 | 0 | } |
35 | |
|
36 | |
public OutputStream getOutputStream() { |
37 | 0 | return outputStream; |
38 | |
} |
39 | |
|
40 | |
public void setOutputStream(OutputStream newData) { |
41 | 0 | this.outputStream = newData; |
42 | 0 | } |
43 | |
|
44 | |
public String getName() { |
45 | 0 | return name; |
46 | |
} |
47 | |
|
48 | |
public void setName(String filename) { |
49 | 0 | this.name = filename; |
50 | 0 | } |
51 | |
|
52 | |
public String getEncoding() { |
53 | 0 | return encoding; |
54 | |
} |
55 | |
|
56 | |
public void setEncoding(String encoding) { |
57 | 0 | this.encoding = encoding; |
58 | 0 | } |
59 | |
|
60 | |
} |