Package org.javarosa.core.data
Interface IDataPointer
- All Superinterfaces:
Externalizable
- All Known Implementing Classes:
BasicDataPointer
public interface IDataPointer extends Externalizable
A data pointer representing a pointer to a (usually) larger object in memory.
- Author:
- Cory Zue
-
Method Summary
Modifier and Type Method Description booleandeleteData()Deletes the underlying data from storage.byte[]getData()Get the data from the underlying storage.InputStreamgetDataStream()Get the data from the underlying storage.StringgetDisplayText()Get a display string that represents this data.longgetLength()Methods inherited from interface org.javarosa.core.util.externalizable.Externalizable
readExternal, writeExternal
-
Method Details
-
getDisplayText
String getDisplayText()Get a display string that represents this data.- Returns:
-
getData
Get the data from the underlying storage. This should maybe be a stream instead of a byte[]- Returns:
- Throws:
IOException
-
getDataStream
Get the data from the underlying storage.- Returns:
- Throws:
IOException
-
deleteData
boolean deleteData()Deletes the underlying data from storage. -
getLength
long getLength()- Returns:
- Gets the length of the data payload
-