asia.redact.bracket.properties
Class PropertiesStreamingLexer
java.lang.Object
asia.redact.bracket.properties.PropertiesStreamingLexer
public class PropertiesStreamingLexer
- extends Object
This lexer uses the LineScanner to build a list of tokens suitable for use by PropertiesParser.
Scan a properties file conforming to the description at
http://download.oracle.com/javase/6/docs/api/java/util/Properties.html#load(java.io.Reader)
into tokens.
There is one additional extension: a comment line which starts with #;; is treated
as transient (not read in). This can be used later to generate a transient header and footer
- Author:
- Dave
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scanner
final LineScanner scanner
list
final List<PropertiesToken> list
PropertiesStreamingLexer
public PropertiesStreamingLexer(Reader in)
PropertiesStreamingLexer
public PropertiesStreamingLexer(InputStream in)
lex
public void lex()
getList
public List<PropertiesToken> getList()
Copyright © 2011-2013 David R. Smith. All Rights Reserved.