|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vgrs.xcode.common.unicodedata.UnicodeDataFileUtil
public class UnicodeDataFileUtil
Unicode data files come in a variety of different formats. Rather than clutter and/or repeat the code to read data from Unicode data files, the utility methods to read from a variety of different Unicode data file formats are present in this class.
| Constructor Summary | |
|---|---|
UnicodeDataFileUtil()
|
|
| Method Summary | |
|---|---|
static java.util.List<Range> |
getRanges(java.lang.String resource)
Read Unicode data from a file, return a List of Range objects. |
static void |
loadCodePointAndCategoryCharMap(java.lang.String aFileName,
TIntCharMap aMap,
java.lang.String[] delimiters,
java.util.Set<java.lang.String> aPropertiesToLoad)
Loads a code point and it's corresponding property into a TIntCharMap. |
static void |
loadCodePointAndCategoryMap(java.lang.String aFileName,
TIntObjectMap<java.lang.String> aMap,
java.lang.String[] delimiters,
java.util.Set<java.lang.String> aPropertiesToLoad)
Loads a code point and it's corresponding property into a TIntObjectMap. |
static void |
loadCodePointAndCategoryMap(java.lang.String aFileName,
TIntObjectMap<java.lang.String> aMap,
java.lang.String aDelimiter,
java.util.Set<java.lang.String> aPropertiesToLoad)
Loads a code point and it's corresponding property into a TIntObjectMap. |
static void |
loadCodePointAndCategorySet(java.lang.String aFileName,
TIntObjectMap<java.util.Set<java.lang.String>> aMap,
java.lang.String[] delimiters)
Loads a code point and it's corresponding property into a TIntObjectMap. |
static void |
loadCodePointSet(java.lang.String aFileName,
TIntSet aSet,
java.lang.String aDelimiter)
Loads a code point and it's corresponding property into a TIntSet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnicodeDataFileUtil()
| Method Detail |
|---|
public static void loadCodePointAndCategoryMap(java.lang.String aFileName,
TIntObjectMap<java.lang.String> aMap,
java.lang.String aDelimiter,
java.util.Set<java.lang.String> aPropertiesToLoad)
throws XcodeException
TIntObjectMap. Data read from the file is tokenized
using the given delimiter parameter. Properties that are present in the
Set aPropertiesToLoad are loaded into the collection.
aFileName - The file from which to load the code points and the corresponding
property into a TIntObjectMapaMap - TIntObjectMapaDelimiter - The delimiter to tokenize the data read from the data file.aPropertiesToLoad - Load only properties specified in this set.
XcodeException
public static void loadCodePointAndCategorySet(java.lang.String aFileName,
TIntObjectMap<java.util.Set<java.lang.String>> aMap,
java.lang.String[] delimiters)
throws XcodeException
TIntObjectMap> . Data read from the file is
tokenized using the given delimiters parameter.
aFileName - The file from which to load the code points and the corresponding
property into a TIntObjectMapaMap - TIntObjectMapdelimiters - The delimiters to tokenize the data read from the data file in
order.
XcodeException
public static void loadCodePointAndCategoryMap(java.lang.String aFileName,
TIntObjectMap<java.lang.String> aMap,
java.lang.String[] delimiters,
java.util.Set<java.lang.String> aPropertiesToLoad)
throws XcodeException
TIntObjectMap. Data read from the file is tokenized
using the given delimiters parameter. Properties that are present in the
Set aPropertiesToLoad are loaded into the collection.
aFileName - The file from which to load the code points and the corresponding
property into a TIntObjectMapaMap - TIntObjectMapdelimiters - The delimiter to tokenize the data read from the data file.aPropertiesToLoad - Load only properties specified in this set.
XcodeException
public static void loadCodePointAndCategoryCharMap(java.lang.String aFileName,
TIntCharMap aMap,
java.lang.String[] delimiters,
java.util.Set<java.lang.String> aPropertiesToLoad)
throws XcodeException
TIntCharMap. Data read from the file is tokenized using the
given delimiters parameter. Properties that are present in the
Set aPropertiesToLoad are loaded into the collection.
aFileName - The file from which to load the code points and the corresponding
property into a TIntObjectMapaMap - TIntCharMap objectdelimiters - The delimiters to tokenize the data read from the data file.aPropertiesToLoad - Load only properties specified in this set.
XcodeException
public static void loadCodePointSet(java.lang.String aFileName,
TIntSet aSet,
java.lang.String aDelimiter)
throws XcodeException
TIntSet. Data read from the file is tokenized using the given
delimiter parameter.
aFileName - The file from which to load the code points and the corresponding
property into a TIntSet object.aSet - TIntSet object into which the code points read should be added.aDelimiter - The delimiter to tokenize the data read from the data file.
XcodeException
public static java.util.List<Range> getRanges(java.lang.String resource)
throws XcodeException
resource - The resource containing Unicode data.
XcodeException - If the file does not exist or has invalid format.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||