This commit is contained in:
jrandom
2004-11-10 13:28:39 +00:00
committed by zzz
parent 299e5528bc
commit 6fc6866eb4

View File

@ -44,23 +44,7 @@ public class I2PSocketOptions {
_readTimeout = getInt(opts, PROP_READ_TIMEOUT, -1);
_writeTimeout = getInt(opts, PROP_WRITE_TIMEOUT, DEFAULT_WRITE_TIMEOUT);
}
/*
protected Properties getEnvProps() {
Properties rv = new Properties();
for (Iterator iter = System.getProperties().keySet().iterator(); iter.hasNext(); ) {
String name = (String)iter.next();
rv.setProperty(name, System.getProperty(name));
}
return rv;
}
public static void main(String args[]) {
System.out.println("System props: " + System.getProperties());
System.out.println("Env props: " + new I2PSocketOptions().getEnvProps());
}
*/
protected int getInt(Properties opts, String name, int defaultVal) {
if (opts == null) return defaultVal;
String val = opts.getProperty(name);