java.io.Externalizable
, java.io.Serializable
public class MappingFileProvider
extends java.lang.Object
implements java.io.Externalizable
Constructor | Description |
---|---|
MappingFileProvider() |
Creates an empty
MappingFileProvider . |
Modifier and Type | Method | Description |
---|---|---|
void |
readExternal(java.io.ObjectInput objectInput) |
Supports Java Serialization.
|
void |
readFileConfigs(java.util.SortedMap<java.lang.Integer,java.util.Set<java.lang.String>> availableDataFiles) |
Initializes an
MappingFileProvider with availableDataFiles . |
java.lang.String |
toString() |
Returns a string representing the data in this class.
|
void |
writeExternal(java.io.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(java.util.SortedMap<java.lang.Integer,java.util.Set<java.lang.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(java.io.ObjectInput objectInput) throws java.io.IOException
readExternal
in interface java.io.Externalizable
java.io.IOException
public void writeExternal(java.io.ObjectOutput objectOutput) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 Google. All Rights Reserved.