com.aspose.ocr.core.publicapi
Class LanguageContainer

java.lang.Object
  extended by com.aspose.ocr.core.publicapi.LanguageContainer

public class LanguageContainer
extends Object

This is container for recognition languages. It needs to set a set of recognition languages. Recognition of multiple languages. The text is recognized by words. Each recognized word has a specific language. There is priority of recognition languages. Language that was added earlier to the collection has a higher priority. If the word is identical in several languages, a language that was earlier added to the collection will be selected.


Constructor Summary
LanguageContainer()
          Initializes a new instance of the LanguageContainer class.
 
Method Summary
 void addLanguage(ILanguage language)
          Adds to the collection recognition language.
 ILanguage getLanguage(String language)
          Gets the language from the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguageContainer

public LanguageContainer()
Initializes a new instance of the LanguageContainer class.

Method Detail

addLanguage

public void addLanguage(ILanguage language)
Adds to the collection recognition language. If such language is already in the collection, it will be added again.

Parameters:
language - the language to be added

getLanguage

public ILanguage getLanguage(String language)
Gets the language from the collection.



Copyright © 2011 Aspose. All Rights Reserved.