|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.log.LogFile
public abstract class LogFile
Encapsulates a log file.
Use the getInstance method to obtain an instance.
Currently, normal files are supported by giving the file name. Also, files inside zip files are supported by giving the resource string zip://zip_file_name#zip_file_entry_name.
Field Summary | |
---|---|
protected javax.swing.JProgressBar |
progressBar
If not null , this progress bar will be used
to report progress feedback information while loading the log file. |
Constructor Summary | |
---|---|
protected |
LogFile()
|
Method Summary | |
---|---|
abstract java.io.InputStream |
getInputStream()
Returns a new InputStream for reading from this LogFile. |
static LogFile |
getInstance(java.lang.String resource)
Create a LogFile instance for the given resource. |
abstract java.lang.String |
getShortName()
Returns a short descriptive name of the file. |
void |
setProgressBar(javax.swing.JProgressBar aProgressBar)
Sets the progress bar to which feedback while loading the log will be transmitted. |
abstract java.lang.String |
toString()
Returns the full filename including path info of the log file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JProgressBar progressBar
null
, this progress bar will be used
to report progress feedback information while loading the log file.
Constructor Detail |
---|
protected LogFile()
Method Detail |
---|
public abstract java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- in case the file could not be openedpublic abstract java.lang.String getShortName()
public abstract java.lang.String toString()
LogFile.getInstance(thisLogFile.toString())
should give a duplicate of the thisLogFile
object.
toString
in class java.lang.Object
public void setProgressBar(javax.swing.JProgressBar aProgressBar)
null
(default).
aProgressBar
- public static LogFile getInstance(java.lang.String resource)
resource
- the log file to open
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |