org.progressmining.xeslite.plugin
Class FastOpenLogFilePlugin

java.lang.Object
  extended by org.processmining.framework.abstractplugins.AbstractImportPlugin
      extended by org.progressmining.xeslite.plugin.FastOpenLogFilePlugin
All Implemented Interfaces:
org.processmining.framework.abstractplugins.ImportPlugin
Direct Known Subclasses:
OpenLogFileDirectMemoryImplPlugin, OpenLogFileDiskImplPlugin, OpenLogFileLiteImplPlugin, OpenLogFileLiteImplWithMetaPlugin

public abstract class FastOpenLogFilePlugin
extends org.processmining.framework.abstractplugins.AbstractImportPlugin

Almost duplicated from Log plug-in, as we want to use our own (faster) XesParser if possible.


Constructor Summary
FastOpenLogFilePlugin()
           
 
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, org.deckfour.xes.factory.XFactory factory)
           
 
Methods inherited from class org.processmining.framework.abstractplugins.AbstractImportPlugin
getFile, importFile, importFile, importFile, importFile, importFromStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastOpenLogFilePlugin

public FastOpenLogFilePlugin()
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