Class WriteResultsIntoDirectoryFactory
java.lang.Object
org.apache.creadur.whisker.app.out.WriteResultsIntoDirectoryFactory
- All Implemented Interfaces:
ResultWriterFactory
Writes results as files within a directory.
-
Constructor Summary
ConstructorDescriptionWriteResultsIntoDirectoryFactory
(File directory, String encoding) Constructs a factory that write reports into the given directory with the given encoding. -
Method Summary
-
Constructor Details
-
WriteResultsIntoDirectoryFactory
Constructs a factory that write reports into the given directory with the given encoding.- Parameters:
directory
- not nullencoding
- not null
-
-
Method Details
-
writerFor
Creates a suitable write for the given report.- Specified by:
writerFor
in interfaceResultWriterFactory
- Parameters:
result
- not null- Returns:
- not null
- Throws:
IOException
- when the report cannot be written- See Also:
-