public interface MediaStreamInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_TYPE_AES128CBC |
static java.lang.String |
CONTENT_TYPE_AES128CTR |
static java.lang.String |
CONTENT_TYPE_DCF
Media Stream content types of interest.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Release any resource allocated by this object.
|
java.lang.String |
getContentType()
Get Media Stream content type.
|
long |
getSize()
Get Media Stream size.
|
int |
read(byte[] buffer)
Read data from a media stream object.
|
int |
read(byte[] buffer,
int offset,
int length)
Read data from a media stream object.
|
void |
seek(long position)
Change the current read position.
|
long |
tell()
Get the current read position.
|
static final java.lang.String CONTENT_TYPE_DCF
static final java.lang.String CONTENT_TYPE_AES128CBC
static final java.lang.String CONTENT_TYPE_AES128CTR
int read(byte[] buffer) throws ErrorCodeException
buffer
- the data buffer to read into.ErrorCodeException
int read(byte[] buffer, int offset, int length) throws ErrorCodeException
buffer
- the data buffer to read into.offset
- the number of buffer locations to skiplength
- the number of bytes to readErrorCodeException
void seek(long position) throws ErrorCodeException
position
- the number of bytes from the start of the media
stream.ErrorCodeException
long tell() throws ErrorCodeException
ErrorCodeException
long getSize() throws ErrorCodeException
ErrorCodeException
java.lang.String getContentType() throws ErrorCodeException
ErrorCodeException
void close()