Package org.cache2k.extra.config.generic
Class FlexibleXmlTokenizerFactory
- java.lang.Object
-
- org.cache2k.extra.config.generic.FlexibleXmlTokenizerFactory
-
- All Implemented Interfaces:
TokenizerFactory
public class FlexibleXmlTokenizerFactory extends Object implements TokenizerFactory
Use XmlPullParser for XML parsing if present (on Android) or fall back to Stax for standard Java environments.- Author:
- Jens Wilke
-
-
Constructor Summary
Constructors Constructor Description FlexibleXmlTokenizerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationTokenizercreateTokenizer(String source, InputStream in, String encoding)
-
-
-
Method Detail
-
createTokenizer
public ConfigurationTokenizer createTokenizer(String source, InputStream in, String encoding) throws Exception
- Specified by:
createTokenizerin interfaceTokenizerFactory- Parameters:
source- Name of the source, this is used only for exceptionsin- Input stream to read fromencoding- character encoding to use- Returns:
- the created tokenizer
- Throws:
Exception
-
-