Package org.adempiere.base.upload
Class UploadMedia
- java.lang.Object
-
- org.adempiere.base.upload.UploadMedia
-
public class UploadMedia extends Object
representation of media- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description UploadMedia(String name, String contentType, InputStream inputStream, long contentLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getContentLength()
String
getContentType()
InputStream
getInputStream()
String
getName()
-
-
-
Constructor Detail
-
UploadMedia
public UploadMedia(String name, String contentType, InputStream inputStream, long contentLength)
- Parameters:
name
-contentType
-inputStream
-contentLength
-
-
-
Method Detail
-
getContentType
public String getContentType()
- Returns:
- content type of media
-
getName
public String getName()
- Returns:
- name/label of media
-
getInputStream
public InputStream getInputStream()
- Returns:
InputStream
for media content
-
getContentLength
public long getContentLength()
- Returns:
- length of media content
-
-