Package org.cxbox.core.file.dto
Class FileDownloadDto
java.lang.Object
org.cxbox.core.file.dto.FileDownloadDto
-
Constructor Summary
ConstructorsConstructorDescriptionFileDownloadDto(byte[] bytes, String name, String type) Deprecated, for removal: This API element is subject to removal in a future version.FileDownloadDto(@NonNull Supplier<InputStream> content, long length, String name, String type) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
FileDownloadDto
@Deprecated(since="4.0.0-M12", forRemoval=true) public FileDownloadDto(byte[] bytes, String name, String type) Deprecated, for removal: This API element is subject to removal in a future version.deprecated. useFileDownloadDto(Supplier, long, String, String)- Parameters:
bytes- file contentname- file nametype- file type
-
FileDownloadDto
public FileDownloadDto(@NonNull @NonNull Supplier<InputStream> content, long length, String name, String type) - Parameters:
content- file contentname- file nametype- `file type
-
-
Method Details
-
getBytes
Deprecated, for removal: This API element is subject to removal in a future version.deprecated. use#getContent()- Returns:
- file content
-