PropertyResourceBundle Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PropertyResourceBundle(Reader) |
Creates a property resource bundle from a |
PropertyResourceBundle(Stream) |
Creates a property resource bundle from an |
PropertyResourceBundle(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
PropertyResourceBundle(Reader)
Creates a property resource bundle from a java.io.Reader
Reader
.
[Android.Runtime.Register(".ctor", "(Ljava/io/Reader;)V", "")]
public PropertyResourceBundle (Java.IO.Reader? reader);
[<Android.Runtime.Register(".ctor", "(Ljava/io/Reader;)V", "")>]
new Java.Util.PropertyResourceBundle : Java.IO.Reader -> Java.Util.PropertyResourceBundle
Parameters
- reader
- Reader
a Reader that represents a property file to read from.
- Attributes
Exceptions
Remarks
Creates a property resource bundle from a java.io.Reader Reader
. Unlike the constructor #PropertyResourceBundle(java.io.InputStream) PropertyResourceBundle(InputStream)
, there is no limitation as to the encoding of the input property file.
Added in 1.6.
Java documentation for java.util.PropertyResourceBundle.PropertyResourceBundle(java.io.Reader)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
PropertyResourceBundle(Stream)
Creates a property resource bundle from an java.io.InputStream
InputStream
.
[Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;)V", "")]
public PropertyResourceBundle (System.IO.Stream? stream);
[<Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;)V", "")>]
new Java.Util.PropertyResourceBundle : System.IO.Stream -> Java.Util.PropertyResourceBundle
Parameters
- stream
- Stream
an InputStream that represents a property file to read from.
- Attributes
Exceptions
if an error occurs during a read operation on the
InputStream
.
Remarks
Creates a property resource bundle from an java.io.InputStream InputStream
. This constructor reads the property file in UTF-8 by default. If a java.nio.charset.MalformedInputException
or an java.nio.charset.UnmappableCharacterException
occurs on reading the input stream, then the PropertyResourceBundle instance resets to the state before the exception, re-reads the input stream in ISO-8859-1
and continues reading. If the system property java.util.PropertyResourceBundle.encoding
is set to either "ISO-8859-1" or "UTF-8", the input stream is solely read in that encoding, and throws the exception if it encounters an invalid sequence. Other encoding values are ignored for this system property. The system property is read and evaluated when initializing this class. Changing or removing the property has no effect after the initialization.
Java documentation for java.util.PropertyResourceBundle.PropertyResourceBundle(java.io.InputStream)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
PropertyResourceBundle(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected PropertyResourceBundle (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.PropertyResourceBundle : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.PropertyResourceBundle
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.