| java.lang.Object | ||
| ↳ | java.util.ResourceBundle | |
| ↳ | java.util.PropertyResourceBundle | |
PropertyResourceBundle loads resources from an InputStream. All resources are
Strings. The resources must be of the form key=value, one
resource per line (see Properties).
See also:
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of
PropertyResourceBundle and loads the
properties file from the specified InputStream.
| |||||||||||
Constructs a new resource bundle with properties read from
reader.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the names of the resources contained in this
ResourceBundle.
| |||||||||||
Returns the named resource from this
ResourceBundle, or null if the
resource is not found.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
|
| |||||||||||
Constructs a new instance of PropertyResourceBundle and loads the
properties file from the specified InputStream.
| Parameters | |
|---|---|
stream |
InputStream:
the InputStream. |
| Throws | |
|---|---|
IOException |
if an error occurs during a read operation on the
InputStream.
|
Constructs a new resource bundle with properties read from reader.
| Parameters | |
|---|---|
reader |
Reader:
the Reader |
| Throws | |
|---|---|
|
IOException |
IOException |
|
Returns the names of the resources contained in this ResourceBundle.
| Returns | |
|---|---|
Enumeration<String> |
an Enumeration of the resource names.
|
Returns the named resource from this ResourceBundle, or null if the
resource is not found.
| Parameters | |
|---|---|
key |
String:
the name of the resource. |
| Returns | |
|---|---|
Object |
the resource object. |