asia.redact.bracket.properties
Class PropertiesStreamingLexer

java.lang.Object
  extended by 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

Field Summary
(package private)  List<PropertiesToken> list
           
(package private)  LineScanner scanner
           
 
Constructor Summary
PropertiesStreamingLexer(InputStream in)
           
PropertiesStreamingLexer(Reader in)
           
 
Method Summary
 List<PropertiesToken> getList()
           
 void lex()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scanner

final LineScanner scanner

list

final List<PropertiesToken> list
Constructor Detail

PropertiesStreamingLexer

public PropertiesStreamingLexer(Reader in)

PropertiesStreamingLexer

public PropertiesStreamingLexer(InputStream in)
Method Detail

lex

public void lex()

getList

public List<PropertiesToken> getList()


Copyright © 2011-2013 David R. Smith. All Rights Reserved.