FileWrapper

May 27, 2025 ยท View on GitHub

Class to wrap file and contentType to be sent as part of a HTTP request.

Constructors

NameDescription
FileWrapper(File file)Initialization constructor.
FileWrapper(File file, String contentType)Initialization constructor.

Methods

NameDescriptionReturn Type
getFile()File instance.File
getContentType()Content type of the file.String