1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package fr.ens.transcriptome.doelan.io;
23
24 import java.io.InputStream;
25 import java.io.OutputStream;
26
27 /***
28 * A factory for testsuitelist io.
29 * @author Laurent Jourdren
30 */
31 public class QualityTestIOFactory {
32
33 /***
34 * Create IO object for quality tests suites lists.
35 * @param name Name of the stream
36 * @return a new QualityTestSuiteListIO
37 */
38 public QualityTestSuiteListIO createQualityTestSuiteListIO(final String name) {
39
40 QualityTestSuiteListXMLIO result = new QualityTestSuiteListXMLIO();
41 result.setFilename(name);
42
43 return result;
44 }
45
46 /***
47 * Create IO object for quality tests suites lists.
48 * @param in InputStream to read
49 * @return a new QualityTestSuiteListIO
50 */
51 public QualityTestSuiteListIO createQualityTestSuiteListIO(
52 final InputStream in) {
53
54 QualityTestSuiteListXMLIO result = new QualityTestSuiteListXMLIO();
55 result.setInputStream(in);
56
57 return result;
58 }
59
60 /***
61 * Create IO object for quality tests suites lists.
62 * @param out OutputStream to write
63 * @return a new QualityTestSuiteListIO
64 */
65 public QualityTestSuiteListIO createQualityTestSuiteListIO(
66 final OutputStream out) {
67
68 QualityTestSuiteListXMLIO result = new QualityTestSuiteListXMLIO();
69 result.setOutputStream(out);
70
71 return result;
72 }
73
74 }