public class JDomProperties extends Properties
defaults
Constructor and Description |
---|
JDomProperties(org.jdom2.Element properties)
Constructor for JDomProperties.
|
Modifier and Type | Method and Description |
---|---|
String |
getProperty(String key) |
String |
getProperty(String key,
String defaultValue) |
void |
list(PrintStream out) |
void |
list(PrintWriter out) |
void |
load(InputStream inStream) |
void |
load(Reader reader) |
void |
loadFromXML(InputStream in) |
Enumeration<?> |
propertyNames() |
void |
save(OutputStream out,
String comments) |
Object |
setProperty(String key,
String value) |
void |
store(OutputStream out,
String comments) |
void |
store(Writer writer,
String comments) |
void |
storeToXML(OutputStream os,
String comment) |
void |
storeToXML(OutputStream os,
String comment,
String encoding) |
Set<String> |
stringPropertyNames() |
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public JDomProperties(org.jdom2.Element properties)
Constructor for JDomProperties.
properties
- a Element
objectpublic Object setProperty(String key, String value)
setProperty
in class Properties
public void load(Reader reader) throws IOException
load
in class Properties
IOException
public void load(InputStream inStream) throws IOException
load
in class Properties
IOException
public void save(OutputStream out, String comments)
save
in class Properties
public void store(Writer writer, String comments) throws IOException
store
in class Properties
IOException
public void store(OutputStream out, String comments) throws IOException
store
in class Properties
IOException
public void loadFromXML(InputStream in) throws IOException, InvalidPropertiesFormatException
loadFromXML
in class Properties
IOException
InvalidPropertiesFormatException
public void storeToXML(OutputStream os, String comment) throws IOException
storeToXML
in class Properties
IOException
public void storeToXML(OutputStream os, String comment, String encoding) throws IOException
storeToXML
in class Properties
IOException
public String getProperty(String key)
getProperty
in class Properties
public String getProperty(String key, String defaultValue)
getProperty
in class Properties
public Enumeration<?> propertyNames()
propertyNames
in class Properties
public Set<String> stringPropertyNames()
stringPropertyNames
in class Properties
public void list(PrintStream out)
list
in class Properties
public void list(PrintWriter out)
list
in class Properties
Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.