public final class RootNode extends Object implements HasChildren
| Constructor and Description |
|---|
RootNode() |
| Modifier and Type | Method and Description |
|---|---|
RootNode |
add(InputStream inputStream,
Charset charset)
Creates a new root node that incorporates the current node's properties and the ones loaded from the given input
stream.
|
RootNode |
add(Reader reader)
Creates a new root node that incorporates the current node's properties and the ones loaded from the given
reader.
|
PropertyNode |
child(String key)
Returns the child
PropertyNode with the given name. |
String |
toString() |
public PropertyNode child(String key)
HasChildrenPropertyNode with the given name. Until a value is retrieved, no check is made for the
existence of any property.timeouts.network, calling child("connect") will return a
node representing timeouts.network.connect.child in interface HasChildrenkey - one or more segments of the key to append to the key of the current nodenull.public RootNode add(Reader reader)
reader - the reader to load frompublic RootNode add(InputStream inputStream, Charset charset)
Properties.load(InputStream), this method will not use ISO 8859-1 (the classic encoding
of properties files) unless specified.inputStream - the input stream to load fromcharset - the charset to useCopyright © 2020. All rights reserved.