Java.util.Properties

Source: Internet
Author: User

Java.util. Properties : An object that can persist key values for storage. The subclass of the map--hashtable.

Map

|--hashtable

|--properties: Used for property configuration files, both keys and values are string types.

Features: 1 : You can persist data storage. 2: The key value is a string. 3: Typically used for configuration files.

|--load () : Loads the data from the stream into the collection.

principle: In fact, is to read the stream and the specified file associated, and read a row of data, because the data is the rule of the key=value, so get a row, through = to cut the row of data, the left is the key, the right is the value, the key, value stored in the Properties collection.

|--Store () : refreshes the output stream after each item is written.

|--list () : lists the collection's key-value data to the specified destination.

Java.util.Properties

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.