public class Alphabet extends DictionaryBase implements Iterable<Character>
Represents a dictionary of characters.
Modifier and Type | Method and Description |
---|---|
void |
addRange(Iterable<Character> characters)
Deprecated.
|
void |
clear()
Removes all characters from a
Alphabet object. |
boolean |
contains(char character)
Determines whether a
Alphabet object contains the specified character as valid or blended. |
void |
exportDictionary(String fileName)
Exports the character dictionary to a file with the specified name.
|
byte |
get_Item(char character)
Gets a type of a character.
|
int |
getCount()
Gets the number of characters contained in the
Alphabet . |
void |
importDictionary(String fileName)
Imports the character 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)
Deprecated.
|
void |
setRange(char[] characters,
byte type)
Sets the type for each character of the specified collection in this instance of the
Alphabet . |
public final byte get_Item(char character)
Gets a type of a character.
character
- The character to get a type.public final int getCount()
Gets the number of characters contained in the Alphabet
.
@Deprecated public final void addRange(Iterable<Character> characters)
Adds the specified collection of valid characters to this instance of the Alphabet
.
Note that existing blended characters are not changed.
characters
- The collection of characters to add to the dictionary.@Deprecated public final void removeRange(Iterable<Character> characters)
Removes the specified collection of valid characters from this instance of the Alphabet
.
Note that existing blended characters are not changed.
characters
- The collection of characters to remove.public final void setRange(char[] characters, byte type)
Sets the type for each character of the specified collection in this instance of the Alphabet
.
characters
- The collection of characters to set the type.type
- The character type.public final boolean contains(char character)
Determines whether a Alphabet
object contains the specified character as valid or blended.
character
- The character to locate in the Alphabet
object.true
if the Alphabet
object contains the specified character as valid or blended;
otherwise, false
.public final void clear()
Removes all characters from a Alphabet
object.
public final void importDictionary(String fileName)
Imports the character 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.