Properties.XmlLoader
Stay organized with collections
Save and categorize content based on your preferences.
Creates a dynamic dependency on XML support so that XML support can be excluded from the
application binary without incurring link errors.
Fields
public
static
final
Properties.XmlLoader
INSTANCE
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eProperties.XmlLoader\u003c/code\u003e enables optional XML support to avoid unnecessary dependencies.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a single public field \u003ccode\u003eINSTANCE\u003c/code\u003e representing the \u003ccode\u003eXmlLoader\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eload\u003c/code\u003e method parses XML data from an \u003ccode\u003eInputStream\u003c/code\u003e and populates a \u003ccode\u003eProperties\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003ePotential exceptions during loading include \u003ccode\u003eIOException\u003c/code\u003e and \u003ccode\u003eInvalidPropertiesFormatException\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Properties.XmlLoader\n\npublic static interface **Properties.XmlLoader** \nCreates a dynamic dependency on XML support so that XML support can be excluded from the\napplication binary without incurring link errors. \n\n### Field Summary\n\n|----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|---|\n| public static final [Properties.XmlLoader](../../../reference/java/util/Properties.XmlLoader.html) | [INSTANCE](../../../reference/java/util/Properties.XmlLoader.html#INSTANCE) | |\n\n### Public Method Summary\n\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract void | [load](../../../reference/java/util/Properties.XmlLoader.html#load(java.util.Properties,%20java.io.InputStream))([Properties](../../../reference/java/util/Properties.html) p, [InputStream](../../../reference/java/io/InputStream.html) in) |\n\nFields\n------\n\n#### public static final Properties.XmlLoader\n**INSTANCE**\n\n\u003cbr /\u003e\n\nPublic Methods\n--------------\n\n#### public abstract void\n**load**\n([Properties](../../../reference/java/util/Properties.html) p, [InputStream](../../../reference/java/io/InputStream.html) in)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| p | |\n| in | |\n|----|---|\n\n##### Throws\n\n| [IOException](../../../reference/java/io/IOException.html) | |\n| [InvalidPropertiesFormatException](../../../reference/java/util/InvalidPropertiesFormatException.html) | |\n|--------------------------------------------------------------------------------------------------------|---|"]]