Package org.adempiere.base.upload
Class UploadMedia
java.lang.Object
org.adempiere.base.upload.UploadMedia
Representation of upload media
- Author:
- hengsin
-
Constructor Summary
ConstructorDescriptionUploadMedia
(String name, String contentType, InputStream inputStream, long contentLength) -
Method Summary
Modifier and TypeMethodDescriptionlong
Get length of media contentGet content type of mediaGet input stream for media contentgetName()
Get media name
-
Constructor Details
-
UploadMedia
- Parameters:
name
-contentType
-inputStream
-contentLength
-
-
-
Method Details
-
getContentType
Get content type of media- Returns:
- content type of media
-
getName
Get media name- Returns:
- name/label of media
-
getInputStream
Get input stream for media content- Returns:
InputStream
for media content
-
getContentLength
public long getContentLength()Get length of media content- Returns:
- length of media content
-