public class DictionaryReaderCreator
extends java.lang.Object
This class is factory of IDictionaryReader for specific dictionary format. If OcrEngine.Config.DictionaryReader is set, OcrEngine will turn on PostProcessing based on current dictionary reader.
Constructor and Description |
---|
DictionaryReaderCreator() |
Modifier and Type | Method and Description |
---|---|
static IDictionaryReader |
getOpenOfficeDictionaryReader(byte[] dicFileStream,
byte[] affFileStream)
Create OpenOfficeDictionaryReader as IDictionaryReader
|
static IDictionaryReader |
getOpenOfficeDictionaryReader(java.io.InputStream dicFileStream,
java.io.InputStream affFileStream)
Create OpenOfficeDictionaryReader as IDictionaryReader
|
static IDictionaryReader |
getOpenOfficeDictionaryReader(java.lang.String dicFile,
java.lang.String affFile)
Create OpenOfficeDictionaryReader as IDictionaryReader
|
static IDictionaryReader |
getOpenOfficeDictionaryReaderInternal(MemoryStream dicFileStream,
MemoryStream affFileStream)
Create OpenOfficeDictionaryReader as IDictionaryReader
|
public static IDictionaryReader getOpenOfficeDictionaryReader(byte[] dicFileStream, byte[] affFileStream)
Create OpenOfficeDictionaryReader as IDictionaryReader
public static IDictionaryReader getOpenOfficeDictionaryReader(java.io.InputStream dicFileStream, java.io.InputStream affFileStream) throws java.io.IOException
Create OpenOfficeDictionaryReader as IDictionaryReader
dicFileStream
- It is a MemoryStream with content of OpenOffice (Hunspell) dictionary file (.dic)affFileStream
- IIt is a MemoryStream with content of OpenOffice (Hunspell) affix file (.aff)java.io.IOException
public static IDictionaryReader getOpenOfficeDictionaryReader(java.lang.String dicFile, java.lang.String affFile)
Create OpenOfficeDictionaryReader as IDictionaryReader
dicFile
- It is string full path to OpenOffice (Hunspell) dictionary file (.dic)affFile
- It is string full path to OpenOffice (Hunspell) affix file (.aff)public static IDictionaryReader getOpenOfficeDictionaryReaderInternal(MemoryStream dicFileStream, MemoryStream affFileStream)
Create OpenOfficeDictionaryReader as IDictionaryReader
dicFileStream
- It is a MemoryStream with content of OpenOffice (Hunspell) dictionary file (.dic)affFileStream
- IIt is a MemoryStream with content of OpenOffice (Hunspell) affix file (.aff)