1 package rydeen.io;
2
3 import java.io.IOException;
4 import java.io.InputStream;
5
6 import rydeen.TargetSource;
7 import rydeen.TargetType;
8
9
10
11
12
13
14 class PlainProcessTarget extends AbstractProcessTarget{
15 private InputStream in;
16
17
18
19
20
21
22 public PlainProcessTarget(TargetSource source, String name, InputStream in){
23 super(source, name);
24 this.in = in;
25 }
26
27
28
29
30 public PlainProcessTarget(TargetSource source, String name, InputStream in, TargetType type){
31 super(source, name, type);
32 this.in = in;
33 }
34
35
36
37
38 @Override
39 public InputStream openStream() throws IOException{
40 return in;
41 }
42 }