private class OSGMM.ListCallback extends Object implements StreamGobblerCallback
Modifier and Type | Field and Description |
---|---|
(package private) List<String> |
mList
The ArrayList where the lines are stored.
|
Constructor and Description |
---|
OSGMM.ListCallback()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getContents()
Returns the contents captured.
|
void |
work(String line)
Callback whenever a line is read from the stream by the StreamGobbler.
|
public void work(String line)
work
in interface StreamGobblerCallback
line
- the line that is read.Copyright © 2011 The University of Southern California. All Rights Reserved.