blob: ff7c2159fe96d66fd5e80a66740fc60a950db35d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package bjc.utils.ioutils.format.directives;
import java.io.*;
/**
* Edict that prints a provided string.
*
* @author Ben Culkin
*/
public class StringEdict implements Edict {
private String val;
/**
* Create a new string edict for a given string.
*
* @param vl
* The string to print.
*/
public StringEdict(String vl) {
this.val = vl;
}
@Override
public void format(FormatContext formCTX) throws IOException {
formCTX.writer.write(val);
}
}
|