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

java.lang.Object
  extended by org.objectweb.util.monolog.file.monolog.MonologPropertiesIO

public class MonologPropertiesIO
extends 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 String[] keywords
           
static char[] PROP_VAL_SEPS
           
 
Constructor Summary
MonologPropertiesIO()
           
 
Method Summary
static Properties readProperties(InputStream is)
           
static void writeProperties(Properties props, 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 String[] keywords
Constructor Detail

MonologPropertiesIO

public MonologPropertiesIO()
Method Detail

writeProperties

public static void writeProperties(Properties props,
                                   OutputStream os)
                            throws IOException
Throws:
IOException

readProperties

public static Properties readProperties(InputStream is)
                                 throws IOException
Throws:
IOException


Copyright © 2012 OW2 Consortium. All Rights Reserved.