org.jbehave.core.reporters
Class FilePrintStreamFactory

java.lang.Object
  extended by org.jbehave.core.reporters.FilePrintStreamFactory
All Implemented Interfaces:
PrintStreamFactory

public class FilePrintStreamFactory
extends java.lang.Object
implements PrintStreamFactory

Creates FilePrintStreamFactory.FilePrintStream instances that write to a file identified by the StoryLocation. FilePrintStreamFactory.FileConfiguration specifies file directory and the extension, providing useful defaults values.


Nested Class Summary
static class FilePrintStreamFactory.FileConfiguration
          Configuration class for file print streams.
static class FilePrintStreamFactory.FilePrintStream
           
 
Constructor Summary
FilePrintStreamFactory(StoryLocation storyLocation)
           
FilePrintStreamFactory(StoryLocation storyLocation, FilePrintStreamFactory.FileConfiguration configuration)
           
 
Method Summary
 java.io.PrintStream createPrintStream()
           
 java.io.File getOutputFile()
           
protected  java.io.File outputDirectory()
           
protected  java.io.File outputFile()
           
protected  java.lang.String outputName()
           
 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(StoryLocation storyLocation)

FilePrintStreamFactory

public FilePrintStreamFactory(StoryLocation storyLocation,
                              FilePrintStreamFactory.FileConfiguration configuration)
Method Detail

createPrintStream

public java.io.PrintStream createPrintStream()
Specified by:
createPrintStream in interface PrintStreamFactory

getOutputFile

public java.io.File getOutputFile()

useConfiguration

public void useConfiguration(FilePrintStreamFactory.FileConfiguration configuration)

outputFile

protected java.io.File outputFile()

outputDirectory

protected java.io.File outputDirectory()

outputName

protected java.lang.String outputName()


Copyright © 2003-2010. All Rights Reserved.