Package psidev.psi.mi.jami.commons
Class OpenedInputStream
- java.lang.Object
-
- psidev.psi.mi.jami.commons.OpenedInputStream
-
public class OpenedInputStream extends Object
The openedInputStream contains a PushbackReader reader that can read the opened input stream and the type of dataSourceFile it represents. It needs to be closed after being used.- Since:
01/03/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description OpenedInputStream(PushbackReader reader, MIFileType source)
Constructor for OpenedInputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
close.PushbackReader
getReader()
Getter for the fieldreader
.MIFileType
getSource()
Getter for the fieldsource
.
-
-
-
Constructor Detail
-
OpenedInputStream
public OpenedInputStream(PushbackReader reader, MIFileType source) throws FileNotFoundException
Constructor for OpenedInputStream.
- Parameters:
reader
- aPushbackReader
object.source
- aMIFileType
object.- Throws:
FileNotFoundException
- if any.
-
-
Method Detail
-
getReader
public PushbackReader getReader()
Getter for the field
reader
.- Returns:
- a
PushbackReader
object.
-
getSource
public MIFileType getSource()
Getter for the field
source
.- Returns:
- a
MIFileType
object.
-
close
public void close() throws IOException
close.
- Throws:
IOException
- if any.
-
-