edu.ksu.cis.bnj.bbn.converter
Class ConverterInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FileInputStream
          extended byedu.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
           
 
Constructor Summary
ConverterInputStream(java.io.File file)
           
ConverterInputStream(java.io.FileDescriptor fdObj)
           
ConverterInputStream(java.lang.String name)
           
 
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
 

Field Detail

filename

protected java.lang.String filename
Constructor Detail

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
Method Detail

getFileName

public java.lang.String getFileName()
Get the file name

Returns: