Package adams.gui.tools
Class FileMonitorPanel.Listener
- java.lang.Object
-
- org.apache.commons.io.input.TailerListenerAdapter
-
- adams.gui.tools.FileMonitorPanel.Listener
-
- All Implemented Interfaces:
org.apache.commons.io.input.TailerListener
- Enclosing class:
- FileMonitorPanel
public static class FileMonitorPanel.Listener extends org.apache.commons.io.input.TailerListenerAdapter
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_File
the monitored file.protected FileMonitorPanel
m_Owner
the owner.
-
Constructor Summary
Constructors Constructor Description Listener(FileMonitorPanel owner, String file)
Initializes the owner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(Exception ex)
Handles an Exception .void
handle(String line)
Handles a line from a Tailer.
-
-
-
Field Detail
-
m_Owner
protected FileMonitorPanel m_Owner
the owner.
-
m_File
protected String m_File
the monitored file.
-
-
Constructor Detail
-
Listener
public Listener(FileMonitorPanel owner, String file)
Initializes the owner.- Parameters:
owner
- the owning actor
-
-
Method Detail
-
handle
public void handle(String line)
Handles a line from a Tailer.- Specified by:
handle
in interfaceorg.apache.commons.io.input.TailerListener
- Overrides:
handle
in classorg.apache.commons.io.input.TailerListenerAdapter
- Parameters:
line
- the line.
-
handle
public void handle(Exception ex)
Handles an Exception .- Specified by:
handle
in interfaceorg.apache.commons.io.input.TailerListener
- Overrides:
handle
in classorg.apache.commons.io.input.TailerListenerAdapter
- Parameters:
ex
- the exception.
-
-