org.cogroo.config
Class LanguageConfigurationUtil

java.lang.Object
  extended by org.cogroo.config.LanguageConfigurationUtil

public class LanguageConfigurationUtil
extends Object

The LanguageConfigurationUtil class is responsible for identifying the language to be used.


Constructor Summary
LanguageConfigurationUtil()
           
 
Method Summary
static LanguageConfiguration get(InputStream configuration)
          Creates a LanguageConfiguration from a InputStream, which remains opened.
static LanguageConfiguration get(Locale locale)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguageConfigurationUtil

public LanguageConfigurationUtil()
Method Detail

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.