edu.isi.pegasus.planner.catalog.site.impl
Class OSGMM.ListCallback

java.lang.Object
  extended by edu.isi.pegasus.planner.catalog.site.impl.OSGMM.ListCallback
All Implemented Interfaces:
StreamGobblerCallback
Enclosing class:
OSGMM

private class OSGMM.ListCallback
extends Object
implements StreamGobblerCallback

An inner class, that implements the StreamGobblerCallback to store all the lines in a List


Field Summary
(package private)  List<String> mList
          The ArrayList where the lines are stored.
 
Constructor Summary
OSGMM.ListCallback()
          Default Constructor.
 
Method Summary
 List<String> getContents()
          Returns the contents captured.
 void work(String line)
          Callback whenever a line is read from the stream by the StreamGobbler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mList

List<String> mList
The ArrayList where the lines are stored.

Constructor Detail

OSGMM.ListCallback

public OSGMM.ListCallback()
Default Constructor.

Method Detail

work

public void work(String line)
Callback whenever a line is read from the stream by the StreamGobbler. Adds the line to the list.

Specified by:
work in interface StreamGobblerCallback
Parameters:
line - the line that is read.

getContents

public List<String> getContents()
Returns the contents captured.

Returns:
List


Copyright © 2011 The University of Southern California. All Rights Reserved.