public interface DownloadableDatatypeHandler<T> extends CustomDatatypeHandler<CustomDatatype<T>,T>
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType(CustomDatatype<T> dt,
String valueReference) |
String |
getFilename(CustomDatatype<T> dt,
String valueReference) |
void |
writeToStream(CustomDatatype<T> dt,
String valueReference,
OutputStream os)
Writes the custom value to os.
|
setHandlerConfigurationString getContentType(CustomDatatype<T> dt, String valueReference)
dt - the datatype this handler handlesvalueReference - custom value to be downloadedString getFilename(CustomDatatype<T> dt, String valueReference)
dt - the datatype this handler handlesvalueReference - custom value to be downloadedvoid writeToStream(CustomDatatype<T> dt, String valueReference, OutputStream os) throws IOException
dt - the datatype this handler handlesvalueReference - custom value to be written to osos - the output stream to be written toIOException - if there is an IO error writing to the streamCopyright © 2024 OpenMRS Inc.. All rights reserved.