java.lang.Object
io.jooby.FileDownload
io.jooby.InlineFile
Represents an inline file response.
- Since:
- 2.0.0
- Author:
- edgar
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jooby.FileDownload
FileDownload.Builder, FileDownload.Mode
-
Constructor Summary
ConstructorDescriptionInlineFile
(InputStream content, String fileName) Creates a new inline file.InlineFile
(InputStream content, String fileName, long fileSize) Creates a new inline file.InlineFile
(Path file) Creates a new inline file.InlineFile
(Path file, String fileName) Creates a new inline file. -
Method Summary
Methods inherited from class io.jooby.FileDownload
build, build, build, build, build, getContentDisposition, getContentType, getFileName, getFileSize, stream, toString
-
Constructor Details
-
InlineFile
Creates a new inline file.- Parameters:
content
- File content.fileName
- Filename.fileSize
- File size or-1
if unknown.
-
InlineFile
Creates a new inline file.- Parameters:
content
- File content.fileName
- Filename.
-
InlineFile
Creates a new inline file.- Parameters:
file
- File content.fileName
- Filename.- Throws:
IOException
- For IO exception while reading file.
-
InlineFile
Creates a new inline file.- Parameters:
file
- File content.- Throws:
IOException
- For IO exception while reading file.
-