Package org.javarosa.core.reference
Class ReferenceDataSource
java.lang.Object
org.javarosa.core.reference.ReferenceDataSource
- All Implemented Interfaces:
LocaleDataSource,Externalizable
public class ReferenceDataSource extends Object implements LocaleDataSource
The ReferenceDataSource is a source of locale data which
is located at a location which is defined by a ReferenceURI.
- Author:
- Clayton Sims
-
Constructor Summary
Constructors Constructor Description ReferenceDataSource()NOTE: FOR SERIALIZATION ONLY!ReferenceDataSource(String referenceURI)Creates a new Data Source for Locale data with the given resource URI. -
Method Summary
Modifier and Type Method Description OrderedMap<String,String>getLocalizedText()voidreadExternal(DataInputStream in, PrototypeFactory pf)voidwriteExternal(DataOutputStream out)
-
Constructor Details
-
ReferenceDataSource
public ReferenceDataSource()NOTE: FOR SERIALIZATION ONLY! -
ReferenceDataSource
Creates a new Data Source for Locale data with the given resource URI.- Parameters:
referenceURI- a URI to the resource file from which data should be loaded- Throws:
NullPointerException- if resourceURI is null
-
-
Method Details
-
getLocalizedText
- Specified by:
getLocalizedTextin interfaceLocaleDataSource
-
readExternal
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionDeserializationException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-