Section 16.12 Properties Class
• A Properties
object (p. 718) is a persistent subclass of Hashtable
.
• The Properties
no-argument constructor creates an empty Properties
table. An overloaded constructor receives a Properties
object containing default property values.
• Properties
method setProperty
(p. 718) specifies the value associated with its key argument. Method getProperty
(p. 718) locates the value of the key specified as an argument. Method store
(p. 720) saves the contents of a Properties
object to specified OutputStream
. Method load
(p. 721) restores the contents of a Properties
object from the specified InputStream
.
Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.