Class OSGMM.ListCallback
- java.lang.Object
-
- edu.isi.pegasus.planner.catalog.site.impl.OSGMM.ListCallback
-
- All Implemented Interfaces:
StreamGobblerCallback
- Enclosing class:
- OSGMM
private static class OSGMM.ListCallback extends java.lang.Object implements StreamGobblerCallback
An inner class, that implements the StreamGobblerCallback to store all the lines in a List
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.lang.String>
mList
The ArrayList where the lines are stored.
-
Constructor Summary
Constructors Constructor Description ListCallback()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getContents()
Returns the contents captured.void
work(java.lang.String line)
Callback whenever a line is read from the stream by the StreamGobbler.
-
-
-
Method Detail
-
work
public void work(java.lang.String line)
Callback whenever a line is read from the stream by the StreamGobbler. Adds the line to the list.- Specified by:
work
in interfaceStreamGobblerCallback
- Parameters:
line
- the line that is read.
-
getContents
public java.util.List<java.lang.String> getContents()
Returns the contents captured.- Returns:
- List
-
-