Class ResourceFileDataSource
java.lang.Object
org.javarosa.core.services.locale.ResourceFileDataSource
- All Implemented Interfaces:
LocaleDataSource,Externalizable
public class ResourceFileDataSource extends Object implements LocaleDataSource
- Author:
- Clayton Sims
-
Constructor Summary
Constructors Constructor Description ResourceFileDataSource()NOTE: FOR SERIALIZATION ONLY!ResourceFileDataSource(String resourceURI)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
-
ResourceFileDataSource
public ResourceFileDataSource()NOTE: FOR SERIALIZATION ONLY! -
ResourceFileDataSource
Creates a new Data Source for Locale data with the given resource URI.- Parameters:
resourceURI- 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
-