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

added abstract dot writer stages

parent f87617fe
No related branches found
No related tags found
1 merge request!17Get impletemented stages and Java 8
Pipeline #
package kieker.analysis.graph.export.dot;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
public abstract class AbstractDotFileWriterStage extends AbstractDotWriterStage {
public AbstractDotFileWriterStage() {
super();
}
@Override
protected Writer getWriter() {
try {
return new FileWriter(getFileName());
} catch (IOException e) {
throw new IllegalStateException(e);
}
}
protected abstract String getFileName();
}
package kieker.analysis.graph.export.dot;
import java.io.Writer;
import kieker.analysis.graph.Graph;
import teetime.framework.AbstractConsumerStage;
public abstract class AbstractDotWriterStage extends AbstractConsumerStage<Graph> {
public AbstractDotWriterStage() {
super();
}
@Override
protected final void execute(final Graph graph) {
DotExporter dotExporter = new DotExporter(graph, getWriter());
dotExporter.transform();
}
protected abstract Writer getWriter();
}
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