diff options
Diffstat (limited to 'src/main/java/ftbsc/lll/mapper/writer/IWriter.java')
-rw-r--r-- | src/main/java/ftbsc/lll/mapper/writer/IWriter.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/mapper/writer/IWriter.java b/src/main/java/ftbsc/lll/mapper/writer/IWriter.java new file mode 100644 index 0000000..13244a9 --- /dev/null +++ b/src/main/java/ftbsc/lll/mapper/writer/IWriter.java @@ -0,0 +1,23 @@ +package ftbsc.lll.mapper.writer; + +import ftbsc.lll.mapper.IMapper; + +import java.io.PrintWriter; + +/** + * The common interface for all mapping writers. + */ +public interface IWriter { + + /** + * @return a unique identifier for this writer + */ + String uniqueId(); + + /** + * Writes in a {@link PrintWriter} the contents of a {@link IMapper}. + * @param mapper the mapper + * @param writer the writer + */ + void write(IMapper mapper, PrintWriter writer); +} |