org.processmining.importing
Class ProMInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by org.processmining.importing.ProMInputStream
All Implemented Interfaces:
java.io.Closeable

public class ProMInputStream
extends java.io.FileInputStream

This importstream is used by the framework to load a file. The ImpotrPlugin.importFile(InputStream input) is called with a ProMInputStream. To get the filename, a type-cast is necessary

Version:
1.0
Author:
not attributable

Constructor Summary
ProMInputStream(java.lang.String name)
          Construcs a ProMInpuStream and remembers the filename for later retrieval.
 
Method Summary
 java.lang.String getFileName()
          return the Filename used to initiate this stream;
 
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
 

Constructor Detail

ProMInputStream

public ProMInputStream(java.lang.String name)
                throws java.io.FileNotFoundException
Construcs a ProMInpuStream and remembers the filename for later retrieval.

Parameters:
name - String
Throws:
java.io.FileNotFoundException
Method Detail

getFileName

public java.lang.String getFileName()
return the Filename used to initiate this stream;

Returns:
String