aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/mapper/writer/IWriter.java
blob: 13244a978c24e3ec629a7081944616584bbd39cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
}