01: package net.sf.regain.util.io;
02:
03: import net.sf.regain.RegainException;
04:
05: /**
06: * An interface for printing Strings. This is needed for separating
07: * {@link net.sf.regain.util.io.MemoryAppender} from
08: * {@link net.sf.regain.util.sharedtag.PageResponse}. Otherwise the
09: * MemoryAppender couldn't be used without having PageResponse in the classpath.
10: *
11: * @author Tilman Schneider, STZ-IDA an der HS Karlsruhe
12: */
13: public interface Printer {
14:
15: /**
16: * Prints a text.
17: *
18: * @param text The text to print.
19: * @throws RegainException If printing failed.
20: */
21: public void print(String text) throws RegainException;
22:
23: }
|