public class CharacterReplacementDictionary extends DictionaryBase implements Iterable<Character>
Represents a character replacement dictionary used during the indexing process.
Modifier and Type | Method and Description |
---|---|
void |
addRange(Iterable<com.aspose.ms.System.Collections.Generic.KeyValuePair<Character,Character>> characterReplacements)
Adds the specified collection of character replacements to this instance of the
CharacterReplacementDictionary . |
void |
clear()
Removes all character replacements from a
CharacterReplacementDictionary object. |
boolean |
contains(char character)
Determines whether a
CharacterReplacementDictionary object contains the specified character replacements. |
void |
exportDictionary(String fileName)
Exports the character dictionary to a file with the specified name.
|
int |
getCount()
Gets the number of characters contained in the
CharacterReplacementDictionary . |
char |
getReplacement(char character)
Gets a replacement for the specified character.
|
void |
importDictionary(String fileName)
Imports the character replacement collection from a file with the specified name.
|
com.aspose.ms.System.Collections.IEnumerator |
iterator_Rename_Namesake()
Returns an enumerator that iterates through a collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Character> |
iterator()
Returns an enumerator that iterates through the collection.
|
void |
removeRange(Iterable<Character> characters)
Removes the specified collection of character replacements from this instance of the
CharacterReplacementDictionary . |
public final int getCount()
Gets the number of characters contained in the CharacterReplacementDictionary
.
public final void addRange(Iterable<com.aspose.ms.System.Collections.Generic.KeyValuePair<Character,Character>> characterReplacements)
Adds the specified collection of character replacements to this instance of the CharacterReplacementDictionary
.
characterReplacements
- The collection of character replacements to add to the dictionary.public final void removeRange(Iterable<Character> characters)
Removes the specified collection of character replacements from this instance of the CharacterReplacementDictionary
.
characters
- The collection of characters to remove.public final boolean contains(char character)
Determines whether a CharacterReplacementDictionary
object contains the specified character replacements.
character
- The character to locate in the CharacterReplacementDictionary
object.true
if the CharacterReplacementDictionary
object contains the specified character;
otherwise, false
.public final char getReplacement(char character)
Gets a replacement for the specified character.
character
- The character to get a replacement for.public final void clear()
Removes all character replacements from a CharacterReplacementDictionary
object.
public final void importDictionary(String fileName)
Imports the character replacement collection from a file with the specified name.
fileName
- The name of the text file to import from.public final void exportDictionary(String fileName)
Exports the character dictionary to a file with the specified name.
fileName
- The name of the text file to export to.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Character> iterator()
Returns an enumerator that iterates through the collection.
public final com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
Returns an enumerator that iterates through a collection.
IEnumerator
object that can be used to iterate through the collection.Copyright © 2019. All rights reserved.