asia.redact.bracket.properties
Class PropertiesParser2

java.lang.Object
  extended by asia.redact.bracket.properties.PropertiesParser2
Direct Known Subclasses:
DotPropertiesParser

public class PropertiesParser2
extends Object

 Use the line scanner to load a Properties implementation.
 
 This class does not use PropertiesToken, it is a "streaming" parser
 which reads the tokens from the line and parses as it reads. 
 It is intended for low memory situations or for very large properties files, 
 where it ought to perform a bit better.
 
 

Author:
Dave

Field Summary
private  Lock lock
           
protected  Properties props
           
protected  LineScanner scanner
           
 
Constructor Summary
PropertiesParser2(LineScanner scanner)
           
PropertiesParser2(LineScanner scanner, Properties props)
           
 
Method Summary
 Properties getProperties()
           
 void parse()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scanner

protected final LineScanner scanner

props

protected final Properties props

lock

private final Lock lock
Constructor Detail

PropertiesParser2

public PropertiesParser2(LineScanner scanner)

PropertiesParser2

public PropertiesParser2(LineScanner scanner,
                         Properties props)
Method Detail

parse

public void parse()

getProperties

public Properties getProperties()


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