klyn.i18n.PropertyResourceBundle.PropertyResourceBundle
constructor
public PropertyResourceBundle(notnull stream as InputStream)
Description

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.

Parameters
ParameterDescription
streamByte stream; remains open after construction.
Throws
  • IOException for read failures.
  • ValueException for malformed Unicode escapes.
  • NullException if stream is null at runtime.
Example
try stream = FileInputStream("Labels.properties"):
    bundle = PropertyResourceBundle(stream)