Class ZipArchiveConvertDocumentResponse
This response type is returned in any one the following scenarios:
- The conversion request contains multiple source files with
InBodyTarget/li> - The target type is
ZipTarget
The response includes the ZIP file name and an input stream to read the archive contents. All converted documents and their associated assets are packaged together in the ZIP file.
Serialization uses JsonInclude.Include.NON_EMPTY, so nulls and empty
collections/strings are omitted from JSON output.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creatingZipArchiveConvertDocumentResponseinstances. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull ZipArchiveConvertDocumentResponse.Builderbuilder()Name of the ZIP archive file containing the converted documents.Input stream for reading the ZIP archive contents.Type of response@NonNull StringtoString()
-
Method Details
-
getResponseType
Description copied from class:ConvertDocumentResponseType of response- Specified by:
getResponseTypein classConvertDocumentResponse- Returns:
- the response type
-
builder
-
toBuilder
-
getFileName
Name of the ZIP archive file containing the converted documents.This is the suggested filename for saving the ZIP archive locally.
- Returns:
- the ZIP archive file name
-
getInputStream
Input stream for reading the ZIP archive contents.This stream provides access to the binary ZIP file data containing all converted documents and their assets. The stream should be properly closed after reading to release resources.
Note: This field is typically not serialized to JSON as it represents binary data. It's used for programmatic access to the ZIP archive contents.
- Returns:
- the input stream for the ZIP archive
-
toString
-