Method getProperty(String key, String def)
Return type:
java.lang.String
Member of:
java.lang.System
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
return Append(System.getProperty("line.separator", "\n"));
2
String homeDir = System.getProperty("user.home", "");
3
private boolean debug = "true".equals(System.getProperty("UTILLdmXMLPlugin.debug", "false"));
4
private boolean showParserFeatures = "true".equals(System.getProperty("UTILLdmXMLPlugin.showParserFeatures", "false"));
5
new DateCache(System.getProperty("LOG_DATE_FORMAT","HH:mm:ss.SSS"));
6
new SimpleDateFormat(System.getProperty("ROLLOVERFILE_BACKUP_FORMAT","HHmmssSSS"));
7
String host = System.getProperty("http.proxyHost", "
");
8
logdir = System.getProperty("helma.logdir", "log");
9
return System.getProperty("java.specification.version", "").startsWith("1.4");
10
String propsFile=System.getProperty("config.file", "bot.properties");
11
lineSeparator = System.getProperty("line.separator", "\r\n");
12
System.getProperty( "sax.parser",
13
System.getProperty( "line.separator", "\n" );
14
String type = System.getProperty("group.view", "panel");
15
fileSeparator = System.getProperty("file.separator","/").charAt(0);
16
curArch = System.getProperty("os.arch", "");
17
String parserClass = System.getProperty("org.xml.sax.driver",
18
Font fontPlain = new Font(System.getProperty("FONT", defaultName), Font.PLAIN,
19
+"\" -D"+main.getName()+Serializer.HOMEDIRSUFX+"="+System.getProperty(main.getName()+Serializer.HOMEDIRSUFX, ".")
20
pvalue = System.getProperty(pname,"?"); // to obtain the value
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.