public class BBProcessorFactory extends Object implements TextProcessorFactory
| Modifier and Type | Method and Description |
|---|---|
TextProcessor |
create()
Create the default bb-code processor.
|
TextProcessor |
create(Configuration conf)
Create TextProcessor by programmatic configuration.
|
TextProcessor |
create(File file)
Create the bb-code processor from file with XML-configuration.
|
TextProcessor |
create(InputStream stream)
Create the bb-processor from XML InputStream
|
TextProcessor |
create(String fileName)
Create the bb-code processor from file with XML-configuration.
|
TextProcessor |
createFromResource(String resourceName)
Create the bb-processor using xml-configuration resource
|
static BBProcessorFactory |
getInstance()
Return instance of BBProcessorFactory
|
public static BBProcessorFactory getInstance()
public TextProcessor create()
create in interface TextProcessorFactoryTextProcessorFactoryException - when can't read the default code set resourcepublic TextProcessor create(Configuration conf)
conf - programmatic configurationpublic TextProcessor createFromResource(String resourceName)
resourceName - name of resource fileTextProcessorFactoryException - when can't find or read the resource or illegal config filepublic TextProcessor create(InputStream stream)
stream - the input stream with XMLTextProcessorFactoryException - when can't build Documentpublic TextProcessor create(File file)
file - file with configurationTextProcessorFactoryException - any problemspublic TextProcessor create(String fileName)
fileName - name of file with configurationTextProcessorFactoryException - any problemsCopyright © 2016. All rights reserved.