import ssv.interaction.diagram.InteractionDiagramFormat;
public class SVGInteractionDiagramFileWriter implements InteractionDiagramFileWriter {
public void write(String fileName, InteractionDiagram diagram) {
SVGOutputFormat svgof = new SVGOutputFormat();
try {
System.out.println(this.getClass().getCanonicalName() + " about to write [" + fileName + "]");
FileOutputStream fos = new FileOutputStream(fileName);
svgof.write(fos, (Drawing) diagram);
} catch (Exception e) {
e.printStackTrace();
}
}