org.priha.util
Class FastPropertyStore
java.lang.Object
org.priha.util.FastPropertyStore
public class FastPropertyStore
- extends java.lang.Object
Provides a very fast way of saving and loading Property files. The format
is almost the same as with regular ones, with few key differences:
- The file encoding is UTF-8
- Unicode entities (\\u) are not recognized
- Line continuations are not supported (line ends with a backslash)
- Always uses \\n for ending the line, on all architectures.
Method Summary |
static java.util.Properties |
load(java.io.FileInputStream in)
|
static void |
store(java.io.OutputStream out,
java.util.Properties props)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FastPropertyStore
public FastPropertyStore()
store
public static void store(java.io.OutputStream out,
java.util.Properties props)
throws java.io.IOException
- Throws:
java.io.IOException
load
public static java.util.Properties load(java.io.FileInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException