|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kefirsf.bb.BBProcessorFactory
public class BBProcessorFactory
Factory for creating BBProcessor from Stream, File, Resource with configuration or default bb-processor.
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 configuration
public TextProcessor createFromResource(String resourceName)
resourceName - name of resource file
TextProcessorFactoryException - when can't find or read the resource or illegal config filepublic TextProcessor create(InputStream stream)
stream - the input stream with XML
TextProcessorFactoryException - when can't build Documentpublic TextProcessor create(File file)
file - file with configuration
TextProcessorFactoryException - any problemspublic TextProcessor create(String fileName)
fileName - name of file with configuration
TextProcessorFactoryException - any problems
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||