Interface Exporter<L extends Label>
- All Known Implementing Classes:
GraphvizExporter,LineGraphExporter,TikzExporter
public interface Exporter<L extends Label>
Common interface for serialisation of a single
VariationDiff.
Not all formats have to provide a way to deserialize a VariationDiff from this format.- Author:
- Benjamin Moosherr
-
Method Summary
Modifier and TypeMethodDescription<La extends L>
voidexportVariationDiff(VariationDiff<La> variationDiff, OutputStream destination) Export avariationDiffintodestination.
-
Method Details
-
exportVariationDiff
<La extends L> void exportVariationDiff(VariationDiff<La> variationDiff, OutputStream destination) throws IOException Export avariationDiffintodestination. This method should have no side effects besides writing todestination. Above all,variationDiffshouldn't be modified. Furthermore,destinationshouldn't be closed to allow the embedding of the exported format into a surrounding file. It can be assumed, thatdestinationis sufficiently buffered.- Parameters:
variationDiff- to be exporteddestination- where the result should be written- Throws:
IOException
-