4105 |
28 Jan 08 |
nicklas |
1 |
/** |
4105 |
28 Jan 08 |
nicklas |
$Id$ |
4105 |
28 Jan 08 |
nicklas |
3 |
|
4105 |
28 Jan 08 |
nicklas |
Copyright (C) 2006 Nicklas Nordborg |
4105 |
28 Jan 08 |
nicklas |
5 |
|
4105 |
28 Jan 08 |
nicklas |
This file is part of BASE - BioArray Software Environment. |
4105 |
28 Jan 08 |
nicklas |
Available at http://base.thep.lu.se/ |
4105 |
28 Jan 08 |
nicklas |
8 |
|
4105 |
28 Jan 08 |
nicklas |
BASE is free software; you can redistribute it and/or |
4105 |
28 Jan 08 |
nicklas |
modify it under the terms of the GNU General Public License |
4479 |
05 Sep 08 |
jari |
as published by the Free Software Foundation; either version 3 |
4105 |
28 Jan 08 |
nicklas |
of the License, or (at your option) any later version. |
4105 |
28 Jan 08 |
nicklas |
13 |
|
4105 |
28 Jan 08 |
nicklas |
BASE is distributed in the hope that it will be useful, |
4105 |
28 Jan 08 |
nicklas |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
4105 |
28 Jan 08 |
nicklas |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4105 |
28 Jan 08 |
nicklas |
GNU General Public License for more details. |
4105 |
28 Jan 08 |
nicklas |
18 |
|
4105 |
28 Jan 08 |
nicklas |
You should have received a copy of the GNU General Public License |
4515 |
11 Sep 08 |
jari |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
4105 |
28 Jan 08 |
nicklas |
21 |
*/ |
4105 |
28 Jan 08 |
nicklas |
22 |
package net.sf.basedb.util.parser; |
4105 |
28 Jan 08 |
nicklas |
23 |
|
4105 |
28 Jan 08 |
nicklas |
24 |
import java.io.IOException; |
4105 |
28 Jan 08 |
nicklas |
25 |
import java.io.InputStream; |
4105 |
28 Jan 08 |
nicklas |
26 |
|
4105 |
28 Jan 08 |
nicklas |
27 |
import net.sf.basedb.core.plugin.Plugin; |
4105 |
28 Jan 08 |
nicklas |
28 |
|
4105 |
28 Jan 08 |
nicklas |
29 |
/** |
4105 |
28 Jan 08 |
nicklas |
This is an extension to the {@link ConfigureByExample} interface |
4105 |
28 Jan 08 |
nicklas |
that allows a plug-in to wrap an input stream with another stream. |
4105 |
28 Jan 08 |
nicklas |
This is useful if the file data is compressed, for example, with gzip. |
4105 |
28 Jan 08 |
nicklas |
33 |
|
4105 |
28 Jan 08 |
nicklas |
@author nicklas |
4105 |
28 Jan 08 |
nicklas |
@version 2.6 |
4105 |
28 Jan 08 |
nicklas |
@base.modified $Date$ |
4105 |
28 Jan 08 |
nicklas |
37 |
*/ |
4105 |
28 Jan 08 |
nicklas |
38 |
public interface WrappedConfigureByExample |
4105 |
28 Jan 08 |
nicklas |
39 |
extends Plugin |
4105 |
28 Jan 08 |
nicklas |
40 |
{ |
4105 |
28 Jan 08 |
nicklas |
41 |
|
4105 |
28 Jan 08 |
nicklas |
42 |
/** |
4105 |
28 Jan 08 |
nicklas |
Wrap an input stream within another stream, for example, a gzip input stream. |
4105 |
28 Jan 08 |
nicklas |
@param in The input stream to wrap |
4105 |
28 Jan 08 |
nicklas |
@return The same or a different input stream |
4105 |
28 Jan 08 |
nicklas |
@throws IOException If there is an error |
4105 |
28 Jan 08 |
nicklas |
47 |
*/ |
4105 |
28 Jan 08 |
nicklas |
48 |
public InputStream wrapInputStream(InputStream in) |
4105 |
28 Jan 08 |
nicklas |
49 |
throws IOException; |
4105 |
28 Jan 08 |
nicklas |
50 |
|
4105 |
28 Jan 08 |
nicklas |
51 |
} |