private static class OSGMM.ListCallback extends java.lang.Object implements StreamGobblerCallback
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<java.lang.String> |
mList
The ArrayList where the lines are stored.
|
Constructor and Description |
---|
ListCallback()
Default Constructor.
|
Modifier and Type | Method and 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.
|
public void work(java.lang.String line)
work
in interface StreamGobblerCallback
line
- the line that is read.public java.util.List<java.lang.String> getContents()