public class MappingFileProvider extends Object implements Externalizable
| Constructor and Description |
|---|
MappingFileProvider()
Creates an empty
MappingFileProvider. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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).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 ExternalizableIOExceptionpublic void writeExternal(ObjectOutput objectOutput) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic String toString()
Copyright © 2014 Google. All Rights Reserved.