|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kefirsf.bb.ConfigurationFactory
public class ConfigurationFactory
Create the text processor configuration
| Field Summary | |
|---|---|
static String |
DEFAULT_CONFIGURATION_FILE
|
static String |
DEFAULT_PROPERTIES_FILE
|
static String |
DEFAULT_PROPERTIES_XML_FILE
|
static String |
DEFAULT_USER_CONFIGURATION_FILE
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_USER_CONFIGURATION_FILE
public static final String DEFAULT_CONFIGURATION_FILE
public static final String DEFAULT_PROPERTIES_FILE
public static final String DEFAULT_PROPERTIES_XML_FILE
| Method Detail |
|---|
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 file
TextProcessorFactoryException - when can't find or read the resource or illegal config filepublic Configuration create(String fileName)
fileName - name of file with configuration
TextProcessorFactoryException - any problemspublic Configuration create(File file)
file - file with configuration
TextProcessorFactoryException - any problemspublic Configuration create(InputStream stream)
stream - the input stream with XML
TextProcessorFactoryException - when can't build Document
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||