public class ConfigurationFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONFIGURATION_FILE |
static String |
DEFAULT_PROPERTIES_FILE |
static String |
DEFAULT_PROPERTIES_XML_FILE |
static String |
DEFAULT_USER_CONFIGURATION_FILE |
static String |
MARKDOWN_CONFIGURATION_FILE |
static String |
SAFE_HTML_CONFIGURATION_FILE |
static String |
TEXTILE_CONFIGURATION_FILE |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
create()
Create the default bb-code processor.
|
Configuration |
create(File file)
Create the bb-code processor from file with XML-configuration.
|
Configuration |
create(InputStream stream)
Create the bb-processor from XML InputStream
|
Configuration |
create(String fileName)
Create the bb-code processor from file with XML-configuration.
|
Configuration |
createFromResource(String resourceName)
Create the bb-processor using xml-configuration resource
|
static ConfigurationFactory |
getInstance()
Return instance of class ConfigurationFactory
|
public static final String DEFAULT_USER_CONFIGURATION_FILE
public static final String DEFAULT_CONFIGURATION_FILE
public static final String SAFE_HTML_CONFIGURATION_FILE
public static final String TEXTILE_CONFIGURATION_FILE
public static final String MARKDOWN_CONFIGURATION_FILE
public static final String DEFAULT_PROPERTIES_FILE
public static final String DEFAULT_PROPERTIES_XML_FILE
public static ConfigurationFactory getInstance()
public Configuration create()
TextProcessorFactoryException - when can't read the default code set resourcepublic Configuration createFromResource(String resourceName)
resourceName - name of resource fileTextProcessorFactoryException - when can't find or read the resource or illegal config filepublic Configuration create(String fileName)
fileName - name of file with configurationTextProcessorFactoryException - any problemspublic Configuration create(File file)
file - file with configurationTextProcessorFactoryException - any problemspublic Configuration create(InputStream stream)
stream - the input stream with XMLTextProcessorFactoryException - when can't build DocumentCopyright © 2016. All rights reserved.