ro.isdc.wro.util
Class RegexpProperties

java.lang.Object
  extended by ro.isdc.wro.util.RegexpProperties

public class RegexpProperties
extends Object

Used to overcome the limitation of Properties class when dealing with regular expressions read from properties file. The main benefit of using RegexpProperties over simple Properties is that the regexp doesn't have to be escaped.

Since:
1.4.7
Author:
Alex Objelean

Constructor Summary
RegexpProperties()
           
 
Method Summary
 Properties load(InputStream inputStream)
          Load the properties from the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexpProperties

public RegexpProperties()
Method Detail

load

public Properties load(InputStream inputStream)
                throws IOException
Load the properties from the stream. The implementation will handle comments properly by removing them before properties are loaded.

Parameters:
inputStream -
Returns:
Properties containing properties parsed from the stream.
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.