org.objectweb.util.monolog.file.monolog
Class MonologPropertiesIO

java.lang.Object
  extended byorg.objectweb.util.monolog.file.monolog.MonologPropertiesIO

public class MonologPropertiesIO
extends java.lang.Object

Permit to read or write a java.util.Properties from an inputStream. The interest of this implementation with regards to the properties.load(InputStream) method is to sort the properties and to take in account particularity of logging properties.

Author:
S.Chassande-Barrioz

Field Summary
static java.lang.String[] keywords
           
static char[] PROP_VAL_SEPS
           
 
Constructor Summary
MonologPropertiesIO()
           
 
Method Summary
static java.util.Properties readProperties(java.io.InputStream is)
           
static void writeProperties(java.util.Properties props, java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_VAL_SEPS

public static final char[] PROP_VAL_SEPS

keywords

public static final java.lang.String[] keywords
Constructor Detail

MonologPropertiesIO

public MonologPropertiesIO()
Method Detail

writeProperties

public static void writeProperties(java.util.Properties props,
                                   java.io.OutputStream os)
                            throws java.io.IOException
Throws:
java.io.IOException

readProperties

public static java.util.Properties readProperties(java.io.InputStream is)
                                           throws java.io.IOException
Throws:
java.io.IOException