Class ZipArchiveConvertDocumentResponse.Builder
java.lang.Object
ai.docling.serve.api.convert.response.ZipArchiveConvertDocumentResponse.Builder
- Enclosing class:
- ZipArchiveConvertDocumentResponse
Builder for creating
ZipArchiveConvertDocumentResponse instances.
Generated by Lombok's @Builder annotation.
Builder methods:
fileName(String)- Set the ZIP archive file nameinputStream(InputStream)- Set the input stream for the ZIP archive
-
Method Summary
Modifier and TypeMethodDescription@NonNull ZipArchiveConvertDocumentResponsebuild()Name of the ZIP archive file containing the converted documents.inputStream(InputStream inputStream) Input stream for reading the ZIP archive contents.@NonNull StringtoString()
-
Method Details
-
fileName
Name of the ZIP archive file containing the converted documents.This is the suggested filename for saving the ZIP archive locally.
- Parameters:
fileName- the ZIP archive file name- Returns:
this.
-
inputStream
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.
- Parameters:
inputStream- the input stream for the ZIP archive- Returns:
this.
-
build
-
toString
-