Class TemplateReader

java.lang.Object
java.io.Reader
fc.util.pagetemplate.TemplateReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public final class TemplateReader extends Reader
A Reader suitable for lexing. Supports all of: peek, read and unread. (no JDK 1.5 reader class has all of those). Mark/reset is not supported because it's too complex to implement given the current fixed-buffer implementation of this class. (on the flip-side this implementation does allow to read very large files without risk of running out of JDK memory).

Note 1: If this class is invoked from the command line, setting the dbg flag in the code to true is useful.