The Util Class in Java Compat

Ice for Java includes a number of utility APIs in the Ice.Util class.

This page summarizes the contents of these APIs for your reference.

The Util Class

Communicator Initialization Methods

Util provides a number of overloaded initialize methods that create a communicator.

Identity Conversion

Util contains two methods for converting object identities of type Identity to and from strings.

Per-Process Logger Methods

Util provides methods for getting and setting the per-process logger.

Property Creation Methods

Util provides a number of overloaded createProperties methods that create property sets.

Proxy Comparison Methods

Two methods, proxyIdentityCompare and proxyIdentityAndFacetCompare, allow you to compare object identities that are stored in proxies (either ignoring the facet or taking the facet into account).

Version Information

The stringVersion and intVersion methods return the version of the Ice run time:

public static String stringVersion();
public static int intVersion();

The stringVersion method returns the Ice version in the form <major>.<minor>.<patch>, for example, 3.7.2. For beta releases, the version is <major>.<minor>b, for example, 3.7b.

The intVersion method returns the Ice version in the form AABBCC, where AA is the major version number, BB is the minor version number, and CC is patch level, for example, 30702 for version 3.7.2. For beta releases, the patch level is set to 51 so, for example, for version 3.7b, the value is 30751.

See Also