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 voidclose()close.PushbackReadergetReader()Getter for the fieldreader.MIFileTypegetSource()Getter for the fieldsource.
-
-
-
Constructor Detail
-
OpenedInputStream
public OpenedInputStream(PushbackReader reader, MIFileType source) throws FileNotFoundException
Constructor for OpenedInputStream.
- Parameters:
reader- aPushbackReaderobject.source- aMIFileTypeobject.- Throws:
FileNotFoundException- if any.
-
-
Method Detail
-
getReader
public PushbackReader getReader()
Getter for the field
reader.- Returns:
- a
PushbackReaderobject.
-
getSource
public MIFileType getSource()
Getter for the field
source.- Returns:
- a
MIFileTypeobject.
-
close
public void close() throws IOExceptionclose.
- Throws:
IOException- if any.
-
-