de.smartics.testdoc.core.export
Class FileOutputManager
java.lang.Object
de.smartics.testdoc.core.export.AbstractOutputManager
de.smartics.testdoc.core.export.FileOutputManager
-
All Implemented Interfaces:
-
OutputManager
-
public class FileOutputManager
-
extends
AbstractOutputManager
Writes to files.
-
Author:
-
Robert Reiner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileOutputManager
public FileOutputManager(File rootDir,
UnitTestDocExporter exporter)
-
Default constructor.
-
Parameters:
-
rootDir
- the root directory to which the generated files are written.
-
exporter
- the exporter that knows the format of the file to be written.
openStreamFor
protected OutputStream openStreamFor(UnitTestDoc testDoc)
throws IOException,
NullPointerException
-
Creates a stream to write the given document to.
-
-
Specified by:
-
openStreamFor
in class
AbstractOutputManager
-
-
Parameters:
-
testDoc
- the documentation to open a stream to write it to.
-
Returns:
-
the opened stream. The client is responsible to close it.
-
Throws:
-
IOException
- if the stream cannot be opened.
-
NullPointerException
- if
testDoc
is
null
.
Copyright © 2010-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.