kz.greetgo.msoffice.docx.RunInstrText Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greetgo.msoffice Show documentation
Show all versions of greetgo.msoffice Show documentation
greetgo library to generate or parse MS Office files
package kz.greetgo.msoffice.docx;
import java.io.PrintStream;
public class RunInstrText implements RunElement {
private final String text;
static final RunInstrText PAGE = new RunInstrText("PAGE");
static final RunInstrText NUMPAGES = new RunInstrText("NUMPAGES");
private RunInstrText(String text) {
this.text = text;
assert text != null;
}
@Override
public void write(PrintStream out) {
out.print("" + text + " ");
}
}