Package com.onlinepayments.domain
Class UploadableFile
java.lang.Object
com.onlinepayments.domain.UploadableFile
A file that can be uploaded.
-
Constructor Summary
ConstructorsConstructorDescriptionUploadableFile(String fileName, InputStream content, String contentType) UploadableFile(String fileName, InputStream content, String contentType, long contentLength) -
Method Summary
Modifier and TypeMethodDescriptionlong
-
Constructor Details
-
UploadableFile
-
UploadableFile
-
-
Method Details
-
getFileName
- Returns:
- The name of the file.
-
getContent
- Returns:
- An input stream with the file's content.
-
getContentType
- Returns:
- The file's content type.
-
getContentLength
public long getContentLength()- Returns:
- The file's content length, or -1 if not known.
-