New constructor that takes an InputStream as parameter

for files that are embedded within a zip file
This commit is contained in:
hns 2001-05-14 14:38:51 +00:00
parent bdf416d1c6
commit e944ba1a3b

View file

@ -27,6 +27,20 @@ public final class SystemProperties extends Properties {
this (null, null);
}
public SystemProperties (InputStream in) {
this (null, null);
try {
load (in);
} catch (Exception x) {
IServer.getLogger().log ("Error reading properties from file "+file+": "+x);
} finally {
try {
in.close ();
} catch (Exception ignore) {}
}
lastread = System.currentTimeMillis ();
}
public SystemProperties (String filename) {
this (filename, null);
}