public final class DictionaryMetadata extends Object
Dictionary
Constructor and Description |
---|
DictionaryMetadata(Map<DictionaryAttribute,String> userAttrs)
Create an instance from an attribute map.
|
Modifier and Type | Method and Description |
---|---|
Map<DictionaryAttribute,String> |
getAttributes()
Return all attributes.
|
CharsetDecoder |
getDecoder()
Returns a new
CharsetDecoder for the encoding . |
CharsetEncoder |
getEncoder()
Returns a new
CharsetEncoder for the encoding . |
EncoderType |
getEncoderType()
Return sequence encoder type.
|
String |
getEncoding() |
Map<Character,List<Character>> |
getEquivalentChars() |
Locale |
getLocale() |
Map<String,List<String>> |
getReplacementPairs() |
byte |
getSeparator() |
char |
getSeparatorAsChar()
Returns the
separator byte converted to a single char . |
boolean |
isConvertingCase() |
boolean |
isFrequencyIncluded() |
boolean |
isIgnoringAllUppercase() |
boolean |
isIgnoringCamelCase() |
boolean |
isIgnoringDiacritics() |
boolean |
isIgnoringNumbers() |
boolean |
isIgnoringPunctuation() |
boolean |
isSupportingRunOnWords() |
public DictionaryMetadata(Map<DictionaryAttribute,String> userAttrs)
DictionaryMetadataBuilder
public Map<DictionaryAttribute,String> getAttributes()
public String getEncoding()
public byte getSeparator()
public Locale getLocale()
public boolean isFrequencyIncluded()
public boolean isIgnoringPunctuation()
public boolean isIgnoringNumbers()
public boolean isIgnoringCamelCase()
public boolean isIgnoringAllUppercase()
public boolean isIgnoringDiacritics()
public boolean isConvertingCase()
public boolean isSupportingRunOnWords()
public CharsetDecoder getDecoder()
CharsetDecoder
for the encoding
.public CharsetEncoder getEncoder()
CharsetEncoder
for the encoding
.public EncoderType getEncoderType()
public char getSeparatorAsChar()
separator
byte converted to a single char
. Throws
a RuntimeException
if this conversion is for some reason impossible
(the byte is a surrogate pair, FSA's encoding
is not available).Copyright © 2016. All rights reserved.