org.jbehave.core.reporters
Class FilePrintStreamFactory
java.lang.Object
org.jbehave.core.reporters.FilePrintStreamFactory
- All Implemented Interfaces:
- PrintStreamFactory
public class FilePrintStreamFactory
- extends Object
- implements PrintStreamFactory
Creates PrintStream
instances that write to a file. FilePrintStreamFactory.FileConfiguration
specifies file directory and the extension, providing useful defaults values.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilePrintStreamFactory
public FilePrintStreamFactory(String storyPath)
FilePrintStreamFactory
public FilePrintStreamFactory(String storyPath,
FilePrintStreamFactory.FileConfiguration configuration)
createPrintStream
public PrintStream createPrintStream()
- Specified by:
createPrintStream
in interface PrintStreamFactory
getOutputFile
public File getOutputFile()
useConfiguration
public void useConfiguration(FilePrintStreamFactory.FileConfiguration configuration)
outputFile
protected File outputFile()
fileName
protected String fileName()
outputDirectory
protected File outputDirectory()
Copyright © 2003-2010. All Rights Reserved.