| java.lang.Object com.sun.midp.jadtool.JadWriter
Method Summary | |
public static void | write(Properties props, OutputStream out, String enc) Writes this property list (key and element pairs) in this
Properties table to the output stream in a format suitable
for loading into a Properties table using the
load method.
The stream is written using the character encoding specified by
enc .
Then every entry in this Properties table is written out,
one per line. | public static void | write(Properties props, OutputStream out) Stores properties to the output stream using the ISO 8859-1
character encoding. |
write | public static void write(Properties props, OutputStream out, String enc) throws IOException(Code) | | Writes this property list (key and element pairs) in this
Properties table to the output stream in a format suitable
for loading into a Properties table using the
load method.
The stream is written using the character encoding specified by
enc .
Then every entry in this Properties table is written out,
one per line. For each entry the key string is written, then an ASCII
= , then the associated element string. Each character of
the element string is examined to see whether it should be rendered as
an escape sequence. Characters less than \u0020 and
characters greater than \u007E are written as
\u xxxx for
the appropriate hexadecimal value xxxx.
After the entries have been written, the output stream is flushed. The
output stream remains open after this method returns.
Parameters: out - an output stream. Parameters: enc - character encoding used on input stream. exception: IOException - if writing this property list to the specifiedoutput stream throws an IOException. exception: ClassCastException - if this Properties objectcontains any keys or values that are not Strings . |
|
|