org.processmining.plugins.log
Class OpenLogFilePlugin

java.lang.Object
  extended by org.processmining.framework.abstractplugins.AbstractImportPlugin
      extended by org.processmining.plugins.log.OpenLogFilePlugin
All Implemented Interfaces:
org.processmining.framework.abstractplugins.ImportPlugin
Direct Known Subclasses:
OpenBufferedLogFilePlugin, OpenNaiveLogFilePlugin

public class OpenLogFilePlugin
extends org.processmining.framework.abstractplugins.AbstractImportPlugin


Constructor Summary
OpenLogFilePlugin()
           
 
Method Summary
protected  java.io.InputStream getInputStream(java.io.File file)
          This method returns an inputStream for a file.
protected  java.lang.Object importFromStream(org.processmining.framework.plugin.PluginContext context, java.io.InputStream input, java.lang.String filename, long fileSizeInBytes)
           
protected  java.lang.Object importFromStream(org.processmining.framework.plugin.PluginContext context, java.io.InputStream input, java.lang.String filename, long fileSizeInBytes, org.deckfour.xes.factory.XFactory factory)
           
 
Methods inherited from class org.processmining.framework.abstractplugins.AbstractImportPlugin
getFile, importFile, importFile, importFile, importFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenLogFilePlugin

public OpenLogFilePlugin()
Method Detail

importFromStream

protected java.lang.Object importFromStream(org.processmining.framework.plugin.PluginContext context,
                                            java.io.InputStream input,
                                            java.lang.String filename,
                                            long fileSizeInBytes,
                                            org.deckfour.xes.factory.XFactory factory)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getInputStream

protected java.io.InputStream getInputStream(java.io.File file)
                                      throws java.lang.Exception
This method returns an inputStream for a file. Note that the default implementation returns "new FileInputStream(file);"

Overrides:
getInputStream in class org.processmining.framework.abstractplugins.AbstractImportPlugin
Parameters:
file -
Returns:
Throws:
java.io.FileNotFoundException
java.lang.Exception

importFromStream

protected java.lang.Object importFromStream(org.processmining.framework.plugin.PluginContext context,
                                            java.io.InputStream input,
                                            java.lang.String filename,
                                            long fileSizeInBytes)
                                     throws java.lang.Exception
Specified by:
importFromStream in class org.processmining.framework.abstractplugins.AbstractImportPlugin
Throws:
java.lang.Exception