Interface ExportableDataContent
- All Superinterfaces:
DataContent
- All Known Implementing Classes:
AbstractExportableDataContent
An extension of
DataContent that provides export capabilities in
different modes.
This interface is intended for data sources that support not only raw binary streaming but also platform-specific script export, such as Bash or Windows CMD. The export mode determines how the underlying content is transformed or wrapped.
Typical use cases include:
- Uploading images or data directly to a remote server (RAW mode)
- Generating self-contained Bash scripts that embed the encoded data (BASH_SCRIPT mode)
- Generating CMD scripts for use on Windows systems (CMD_SCRIPT mode)
Implementations are responsible for adapting the content to the selected
ExportMode.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnumeration of supported export modes. -
Field Summary
Fields inherited from interface DataContent
DEFAULT_MAX_READ_SIZE -
Method Summary
Modifier and TypeMethodDescriptionReturns the current export mode.voidSets the desired export mode.Methods inherited from interface DataContent
getStream, setInput, toBytes, toText
-
Method Details
-
getExportMode
ExportableDataContent.ExportMode getExportMode()Returns the current export mode.- Returns:
- the export mode that determines how the content will be formatted or transformed
-
setExportMode
Sets the desired export mode.- Parameters:
mode- the export mode to use; must not benull- Throws:
NullPointerException- if the mode isnull
-