public class Dictionary extends Object
Constructor and Description |
---|
Dictionary(Directory tempDir,
String tempFileNamePrefix,
InputStream affix,
InputStream dictionary)
Creates a new Dictionary containing the information read from the provided InputStreams to hunspell affix
and dictionary files.
|
Dictionary(Directory tempDir,
String tempFileNamePrefix,
InputStream affix,
List<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(Path tempDir)
Used by test framework
|
public Dictionary(Directory tempDir, String tempFileNamePrefix, InputStream affix, InputStream dictionary) throws IOException, 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).IOException
- Can be thrown while reading from the InputStreamsParseException
- Can be thrown if the content of the files does not meet expected formatspublic Dictionary(Directory tempDir, String tempFileNamePrefix, InputStream affix, List<InputStream> dictionaries, boolean ignoreCase) throws IOException, 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).IOException
- Can be thrown while reading from the InputStreamsParseException
- Can be thrown if the content of the files does not meet expected formatspublic boolean getIgnoreCase()
ignoreCase
optionpublic static void setDefaultTempDir(Path tempDir)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.