View Javadoc

1   /*
2    *                Doelan development code
3    *
4    * This code may be freely distributed and modified under the
5    * terms of the GNU General Public Licence.  This should
6    * be distributed with the code. If you do not have a copy,
7    * see:
8    *
9    *      http://www.gnu.org/copyleft/gpl.txt
10   *
11   * Copyright (c) 2004-2005 ENS Microarray Platform
12   * Copyright for this code is held jointly by the individual
13   * authors.  These should be listed in @author doc comments.
14   *
15   * For more information on the Doelan project and its aims,
16   * or to join the Doelan mailing list, visit the home page
17   * at:
18   *
19   *      http://www.transcriptome.ens.fr/doelan
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  }