public class Dictionary
extends java.lang.Object
| Constructor and Description |
|---|
Dictionary(Directory tempDir,
java.lang.String tempFileNamePrefix,
java.io.InputStream affix,
java.io.InputStream dictionary)
Creates a new Dictionary containing the information read from the provided InputStreams to hunspell affix
and dictionary files.
|
Dictionary(Directory tempDir,
java.lang.String tempFileNamePrefix,
java.io.InputStream affix,
java.util.List<java.io.InputStream> dictionaries,
boolean ignoreCase)
Creates a new Dictionary containing the information read from the provided InputStreams to hunspell affix
and dictionary files.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getIgnoreCase()
Returns true if this dictionary was constructed with the
ignoreCase option |
static void |
setDefaultTempDir(java.nio.file.Path tempDir)
Used by test framework
|
public Dictionary(Directory tempDir, java.lang.String tempFileNamePrefix, java.io.InputStream affix, java.io.InputStream dictionary) throws java.io.IOException, java.text.ParseException
tempDir - Directory to use for offline sortingtempFileNamePrefix - prefix to use to generate temp file namesaffix - InputStream for reading the hunspell affix file (won't be closed).dictionary - InputStream for reading the hunspell dictionary file (won't be closed).java.io.IOException - Can be thrown while reading from the InputStreamsjava.text.ParseException - Can be thrown if the content of the files does not meet expected formatspublic Dictionary(Directory tempDir, java.lang.String tempFileNamePrefix, java.io.InputStream affix, java.util.List<java.io.InputStream> dictionaries, boolean ignoreCase) throws java.io.IOException, java.text.ParseException
tempDir - Directory to use for offline sortingtempFileNamePrefix - prefix to use to generate temp file namesaffix - InputStream for reading the hunspell affix file (won't be closed).dictionaries - InputStream for reading the hunspell dictionary files (won't be closed).java.io.IOException - Can be thrown while reading from the InputStreamsjava.text.ParseException - Can be thrown if the content of the files does not meet expected formatsCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.