org.cogroo.config
Class LanguageConfigurationUtil
java.lang.Object
org.cogroo.config.LanguageConfigurationUtil
public class LanguageConfigurationUtil
- extends Object
The LanguageConfigurationUtil class is responsible for
identifying the language to be used.
LanguageConfigurationUtil
public LanguageConfigurationUtil()
get
public static LanguageConfiguration get(Locale locale)
- Parameters:
locale - contains the language to be used
- Returns:
- the file .xml converted to Java, it contains which analyzers to add
into the pipe according to the language to be used
- Throws:
InitializationException
get
public static LanguageConfiguration get(InputStream configuration)
- Creates a
LanguageConfiguration from a InputStream, which
remains opened.
- Parameters:
configuration - the input stream
- Returns:
- a
LanguageConfiguration
main
public static void main(String[] args)
throws FileNotFoundException,
JAXBException
- Throws:
FileNotFoundException
JAXBException
Copyright © 2012-2013 CoGrOO. All Rights Reserved.