org.objectweb.joram.kclient
Class Properties
java.lang.Object
org.objectweb.joram.kclient.Properties
public class Properties
- extends java.lang.Object
Built-in facility for supporting application-defined property values.
Property names must not be null, and must not be empty strings. If a
property name is set and it is either null or an empty string, an
IllegalArgumentException must be thrown.
Property values can be boolean, byte, short, int, long, float, double,
and String. At this time, properties does nor support conversion between
types.
Method Summary |
static Properties |
readFrom(InputXStream is)
The object implements the readFrom method to restore its contents from
the input stream. |
void |
writeTo(OutputXStream os)
The object implements the writeTo method to write its contents to
the output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Properties
public Properties()
Properties
public Properties(int capacity)
writeTo
public void writeTo(OutputXStream os)
throws java.io.IOException
- The object implements the writeTo method to write its contents to
the output stream.
- Parameters:
os
- the stream to write the object to
- Throws:
java.io.IOException
readFrom
public static Properties readFrom(InputXStream is)
throws java.io.IOException
- The object implements the readFrom method to restore its contents from
the input stream.
- Parameters:
is
- the stream to read data from in order to restore the object
- Throws:
java.io.IOException
Copyright © 2005 Scalagent - All rights reserved