edu.ksu.cis.bnj.bbn.converter
Class ConverterInputStream
java.lang.Object
java.io.InputStream
java.io.FileInputStream
edu.ksu.cis.bnj.bbn.converter.ConverterInputStream
- public class ConverterInputStream
- extends java.io.FileInputStream
Encapsulate the file input stream. This is so that we can fetch the file
name if possible. It is because some converter like Hugin .net requires the
graph name to be named as the file name. FileInputStream doesn't facilitate
this.
- Author:
- Roby Joehanes
Field Summary |
protected java.lang.String |
filename
|
Method Summary |
java.lang.String |
getFileName()
Get the file name |
Methods inherited from class java.io.FileInputStream |
available, close, finalize, getChannel, getFD, read, read, read, skip |
Methods inherited from class java.io.InputStream |
mark, markSupported, reset |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filename
protected java.lang.String filename
ConverterInputStream
public ConverterInputStream(java.io.File file)
throws java.io.FileNotFoundException
- Parameters:
file
-
- Throws:
java.io.FileNotFoundException
ConverterInputStream
public ConverterInputStream(java.io.FileDescriptor fdObj)
- Parameters:
fdObj
-
ConverterInputStream
public ConverterInputStream(java.lang.String name)
throws java.io.FileNotFoundException
- Parameters:
name
-
- Throws:
java.io.FileNotFoundException
getFileName
public java.lang.String getFileName()
- Get the file name
- Returns: