|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.io.MultiOutputFiles<F,R>
F
- the file type.R
- the result type.public class MultiOutputFiles<F extends OutputFile<R>,R>
This class is used to create multiple output files.
Constructor Summary | |
---|---|
MultiOutputFiles(java.util.Iterator<F> fileSource)
Constructs a new multiple output files results manager. |
Method Summary | ||
---|---|---|
|
addData(S results)
Adds the provided results to the current file. |
|
void |
breakPoint()
Closes the current file if one exists. |
|
void |
close()
Closes this results manager so that no further results can be added. |
|
java.lang.String |
getName()
Returns the name of the current file. |
|
boolean |
isClosed()
Indicates if this results manager has already been closed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiOutputFiles(java.util.Iterator<F> fileSource)
fileSource
- a source of output files.Method Detail |
---|
public void close()
close
in interface ResultsManager<R>
public boolean isClosed()
isClosed
in interface ResultsManager<R>
true
if results can still be
added to this manager; false
otherwise.close()
public <S extends R> void addData(S results)
addData
in interface ResultsManager<R>
S
- a type extending the primary results type.results
- the results to add to the current file.public java.lang.String getName()
getName
in interface ResultsManager<R>
null
if one
does not exist.public void breakPoint()
breakPoint
in interface ResultsManager<R>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |