public class Settings extends Object
| Modifier and Type | Method and Description |
|---|---|
static XMLInputFactory |
defaultXmlInputFactory()
Returns XMLInputFactory instance with default configuration.
|
static DocumentBuilderFactory |
documentBuilderFactory()
Returns DocumentBuilderFactory instance with default configuration.
|
static String |
getProperty(String key)
Gets given global property from
PROPERTIES_FILENAME |
static URL |
getResourceFromProperty(String property)
Returns URL of classpath resource defined by specified property
|
static InputStream |
getStreamFromProperty(String property)
Returns stream of classpath resource defined by specified property
|
static boolean |
isProperty(String key)
Finds out if the global property is set
|
static void |
setProperty(String key,
String value)
Sets given global property
|
static org.jdom2.input.SAXBuilder |
setupSAXBuilder()
Sets properties desired for MathML normalization purpose
|
static XMLInputFactory |
setupXMLInputFactory()
Sets properties desired for MathML normalization purpose
NB: this method creates factory only once per thread
|
static XMLOutputFactory |
xmlOutputFactory()
Returns XMLOutputFactory instance with default configuration.
|
static SchemaFactory |
xmlSchemaFactory()
Returns SchemaFactory instance dedicated to XML W3C Schema.
|
public static String getProperty(String key)
PROPERTIES_FILENAMEkey - property nameIllegalArgumentException - when property not setpublic static boolean isProperty(String key)
key - property namepublic static void setProperty(String key, String value)
key - property namevalue - property valuepublic static XMLInputFactory setupXMLInputFactory()
public static XMLInputFactory defaultXmlInputFactory()
public static XMLOutputFactory xmlOutputFactory()
public static DocumentBuilderFactory documentBuilderFactory()
public static SchemaFactory xmlSchemaFactory()
public static org.jdom2.input.SAXBuilder setupSAXBuilder()
public static URL getResourceFromProperty(String property)
public static InputStream getStreamFromProperty(String property)
Copyright © 2015. All rights reserved.