public final class XMLProperties extends Properties implements org.pageseeder.xmlwriter.XMLWritable
Properties
class.defaults
Constructor and Description |
---|
XMLProperties()
Creates an empty property list with no default values.
|
Modifier and Type | Method and Description |
---|---|
void |
load(InputStream inStream)
Reads a XML property list from the input stream.
|
void |
store(OutputStream out,
String header)
Stores these XML properties in an XML file.
|
void |
toXML(org.pageseeder.xmlwriter.XMLWriter xml) |
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML, 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 XMLProperties()
public void load(InputStream inStream) throws IOException
load
in class Properties
inStream
- The XML input stream to parse.IOException
- If an error occurred when reading from the input stream.public void store(OutputStream out, String header) throws IOException, ClassCastException
Since Berlioz 0.9.9, this method also prepends the doctype.
store
in class Properties
out
- An output stream.header
- A description of the property list.IOException
- if writing this property list to the specified
output stream throws an IOException.ClassCastException
- If this Properties
object
contains any keys or values that are not Strings
.NullPointerException
- If out
is null.public void toXML(org.pageseeder.xmlwriter.XMLWriter xml) throws IOException
toXML
in interface org.pageseeder.xmlwriter.XMLWritable
xml
- The XML writer receiving data.IOException
- Should an error occur with the XML writer.Copyright © 2016 Allette Systems. All rights reserved.