|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.configuration.ConfigurationUtil
public class ConfigurationUtil
A utility class to read/write configuration files.
| Constructor Summary | |
|---|---|
ConfigurationUtil()
|
|
| Method Summary | |
|---|---|
static Configuration |
read(java.io.InputStream is)
Returns a configuration object from an input stream. |
static void |
write(Configuration config,
java.io.OutputStream out)
Writes a SplitFile object to the given OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationUtil()
| Method Detail |
|---|
public static Configuration read(java.io.InputStream is)
throws java.lang.Exception
Returns a configuration object from an input stream.
is -
java.lang.Exception
public static void write(Configuration config,
java.io.OutputStream out)
throws java.lang.Exception
Writes a SplitFile object to the given OutputStream. This method does *not* use Java's object serialization mechanism in order to let non-Java code use them.
config - out - The OutputStream to serialize the file to.
java.io.IOException - Should any exception occur.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||