|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.i18n.phonenumbers.geocoding.MappingFileProvider
public class MappingFileProvider
A utility which knows the data files that are available for the geocoder to use. The data files contain mappings from phone number prefixes to text descriptions, and are organized by country calling code and language that the text descriptions are in.
| Constructor Summary | |
|---|---|
MappingFileProvider()
Creates an empty MappingFileProvider. |
|
| Method Summary | |
|---|---|
void |
readExternal(ObjectInput objectInput)
Supports Java Serialization. |
void |
readFileConfigs(SortedMap<Integer,Set<String>> availableDataFiles)
Initializes an MappingFileProvider with availableDataFiles. |
String |
toString()
Returns a string representing the data in this class. |
void |
writeExternal(ObjectOutput objectOutput)
Supports Java Serialization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MappingFileProvider()
MappingFileProvider. The default constructor is necessary for
implementing Externalizable. The empty provider could later be populated by
readFileConfigs(java.util.SortedMap) or readExternal(java.io.ObjectInput).
| Method Detail |
|---|
public void readFileConfigs(SortedMap<Integer,Set<String>> availableDataFiles)
MappingFileProvider with availableDataFiles.
availableDataFiles - a map from country calling codes to sets of languages in which data
files are available for the specific country calling code. The map is sorted in ascending
order of the country calling codes as integers.
public void readExternal(ObjectInput objectInput)
throws IOException
readExternal in interface ExternalizableIOException
public void writeExternal(ObjectOutput objectOutput)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||