APIdia Launch Partner
Top Fields Constructors Methods
sun.net

public Class NetProperties

extends Object
Class Inheritance
Imports
jdk.internal.util.StaticProperty, java.io.*, java.util.Properties

Field Summary

Modifier and TypeField and Description
private static final Properties

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the String value for the property, or null
get
(String
the property name.
key
)

Get a networking system property.

public static Boolean

Returns:

the Boolean value for the property, or null
getBoolean
(String
the property name.
key
)

Get a Boolean networking system property.

public static Integer

Returns:

the Integer value for the property, or null
getInteger
(String
the property name.
key
,
int
the default value to use if the property is not found
defval
)

Get an Integer networking system property.

private static Properties
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

propsback to summary
private static final Properties props

Constructor Detail

NetPropertiesback to summary
private NetProperties()

Method Detail

getback to summary
public static String get(String key)

Get a networking system property. If no system property was defined returns the default value, if it exists, otherwise returns null.

Parameters
key:String

the property name.

Returns:String

the String value for the property, or null

getBooleanback to summary
public static Boolean getBoolean(String key)

Get a Boolean networking system property. If no system property was defined returns the default value, if it exists, otherwise returns null.

Parameters
key:String

the property name.

Returns:Boolean

the Boolean value for the property, or null

getIntegerback to summary
public static Integer getInteger(String key, int defval)

Get an Integer networking system property. If no system property was defined returns the default value, if it exists, otherwise returns null.

Parameters
key:String

the property name.

defval:int

the default value to use if the property is not found

Returns:Integer

the Integer value for the property, or null

loadDefaultPropertiesback to summary
private static Properties loadDefaultProperties(Properties props)