public class MediaByteArraySource extends BaseMediaSource
MediaSource
interface that reads media data from an in-memory
byte array. The content length of the media source defaults to the size
of the byte array and the time of modification to the current time.MediaSource
MediaSource.Output
contentLength, etag, lastModified, mediaType, name
Constructor and Description |
---|
MediaByteArraySource(byte[] mediaBytes,
java.lang.String mediaType)
Constructs a new MediaBteyArraySource using the specified byte data
and content type.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
getContentLength, getContentType, getEtag, getLastModified, getName, setContentLength, setEtag, setLastModified, setName