J2_system. getproperty standard parameter example table.

Source: Internet
Author: User


J2_system. getproperty standard parameter example table.

The varous j2jsr statements define system property names that can be queried at runtime. These provide two services:

To indicate the availability of an optional package:

For example, if the device supports the location API for j2e-then the property microedition. location. version will be present. the value associated with it will be "1.0", to indicate compliance with JSR 179.

To provide platform-dependent configuration data

For instance, the property microedition. commp orts is present in the MIDP 2.0 specification. its value is a comma-separated list of ports you can use to build a URL, which the generic connection framework can in turn use to create a javax. microedition. io. commconnection object.
To Query System Properties use Java. Lang. system. getproperty (), as in:

Import java. Lang .*;

String value;
String key = "microedition. Pim. Version ";

Value = system. getproperty (key );

This table lists the defined system properties, drawing them from jsrs that are in the public review, final ballot, or final State, as defined in the Java Community process (JCP ):

J2defined System Properties

JSR property name
Default Value & sup1;
30 microedition. Platform null
Microedition. Encoding iso8859_1
Microedition. Configuration CLDC-1.0
Microedition. Profiles null
37 microedition. locale null
Microedition. Profiles MIDP-1.0
75 microedition. Io. file. fileconnection. Version 1.0
File. separator (impl-dep)
Microedition. Pim. Version 1.0
118 microedition. locale null
Microedition. Profiles MIDP-2.0
Microedition. commp orts (impl-dep)
Microedition. hostname (impl-dep)
120 wireless. messaging. SMS. SMSC (impl-dep)
139 microedition. Platform (impl-dep)
Microedition. Encoding ISO8859-1
Microedition. Configuration CLDC-1.1
Microedition. Profiles (impl-dep)
177 microedition. smartcardslots (impl-dep)
179 microedition. Location. Version 1.0
180 microedition. Sip. Version 1.0
184 microedition. M3G. Version 1.0
185 microedition. jtwi. Version 1.0
195 microedition. locale (impl-dep)
Microedition. Profiles imp-1.0
205 wireless. messaging. SMS. SMSC (impl-dep)
205 wireless. messaging. mms. mmsc (impl-dep)
211 chapi-Version 1.0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.