mirror of
https://github.com/corda/corda.git
synced 2025-02-27 11:36:42 +00:00
Added methods to get and set properties, and stub method to save them
This commit is contained in:
parent
cacb5a6f1e
commit
8c248e382f
@ -1,6 +1,7 @@
|
|||||||
package java.util;
|
package java.util;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
import java.io.OutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class Properties extends Hashtable {
|
public class Properties extends Hashtable {
|
||||||
@ -8,6 +9,18 @@ public class Properties extends Hashtable {
|
|||||||
new Parser().parse(in, this);
|
new Parser().parse(in, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void store(OutputStream out, String comment) throws IOException {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProperty(String key) {
|
||||||
|
return (String)get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProperty(String key, String value) {
|
||||||
|
put(key, value);
|
||||||
|
}
|
||||||
|
|
||||||
private static class Parser {
|
private static class Parser {
|
||||||
private StringBuilder key = null;
|
private StringBuilder key = null;
|
||||||
private StringBuilder value = null;
|
private StringBuilder value = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user