org.jbehave.core.reporters
Class FilePrintStreamFactory

java.lang.Object
  extended by 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.


Nested Class Summary
static class FilePrintStreamFactory.FileConfiguration
          StoryConfiguration class for file print streams.
 
Constructor Summary
FilePrintStreamFactory(String storyPath)
           
FilePrintStreamFactory(String storyPath, FilePrintStreamFactory.FileConfiguration configuration)
           
 
Method Summary
 PrintStream createPrintStream()
           
protected  String fileName()
           
 File getOutputFile()
           
protected  File outputDirectory()
           
protected  File outputFile()
           
 void useConfiguration(FilePrintStreamFactory.FileConfiguration configuration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePrintStreamFactory

public FilePrintStreamFactory(String storyPath)

FilePrintStreamFactory

public FilePrintStreamFactory(String storyPath,
                              FilePrintStreamFactory.FileConfiguration configuration)
Method Detail

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.