public class ReferenceDataSource extends java.lang.Object implements LocaleDataSource
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
referenceURI |
Constructor and Description |
---|
ReferenceDataSource()
NOTE: FOR SERIALIZATION ONLY!
|
ReferenceDataSource(java.lang.String referenceURI)
Creates a new Data Source for Locale data with the given resource URI.
|
Modifier and Type | Method and Description |
---|---|
OrderedMap<java.lang.String,java.lang.String> |
getLocalizedText() |
void |
readExternal(java.io.DataInputStream in,
PrototypeFactory pf) |
void |
writeExternal(java.io.DataOutputStream out) |
public ReferenceDataSource()
public ReferenceDataSource(java.lang.String referenceURI)
referenceURI
- a URI to the resource file from which data should be loadedjava.lang.NullPointerException
- if resourceURI is nullpublic OrderedMap<java.lang.String,java.lang.String> getLocalizedText()
getLocalizedText
in interface LocaleDataSource
public void readExternal(java.io.DataInputStream in, PrototypeFactory pf) throws java.io.IOException, DeserializationException
readExternal
in interface Externalizable
java.io.IOException
DeserializationException
public void writeExternal(java.io.DataOutputStream out) throws java.io.IOException
writeExternal
in interface Externalizable
java.io.IOException