Skip to content
Snippets Groups Projects
Commit 4f55abbd authored by Sören Henning's avatar Sören Henning
Browse files

Added constructors

parent e887eff6
No related branches found
No related tags found
No related merge requests found
......@@ -11,17 +11,25 @@ import kieker.analysis.util.graph.util.FileExtension;
public class DotFileWriterStage extends DotWriterStage {
public DotFileWriterStage(final Function<Graph, String> fileNameMapper) {
this(fileNameMapper, new SimpleDotExportConfiguration());
}
public DotFileWriterStage(final Function<Graph, String> fileNameMapper, final DotExportConfiguration exportConfiguration) {
super(fileNameMapper.andThen(fileName -> {
try {
return new FileWriter(fileName);
} catch (IOException e) {
throw new IllegalArgumentException(e);
}
}));
}), exportConfiguration);
}
public DotFileWriterStage(final String outputDirectory) {
this(new SimpleFileNameMapper(outputDirectory, FileExtension.DOT));
this(outputDirectory, new SimpleDotExportConfiguration());
}
public DotFileWriterStage(final String outputDirectory, final DotExportConfiguration exportConfiguration) {
this(new SimpleFileNameMapper(outputDirectory, FileExtension.DOT), exportConfiguration);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment