public PropertyResourceBundle(notnull stream as InputStream)
Reads a caller-owned byte stream as UTF-8, falling back to ISO-8859-1 only if the byte sequence is not valid UTF-8.
| Parameter | Description |
|---|---|
stream | Byte stream; remains open after construction. |
try stream = FileInputStream("Labels.properties"):
bundle = PropertyResourceBundle(stream)