public interface IMediaContainerSdk
IMediaContainerSdk
- MediaContainer
SDK.Modifier and Type | Method and Description |
---|---|
MediaContainer |
getMediaContainer(byte[] signature)
Returns
MediaContainer type of the media defined by initial bytes signature. |
MediaContainer |
getMediaContainer(java.io.File file)
Returns
MediaContainer type of the media file . |
IMediaFileReader |
openFileReader(ByteArray file,
java.lang.Object... args)
Opens media
file reader. |
IMediaWriter |
openFileWriter(java.io.File file,
MediaContainer container,
java.lang.Object... args)
Opens media
file writer. |
IMediaWriter |
openOutputStreamWriter(java.io.OutputStream os,
MediaContainer container,
java.lang.Object... args)
Opens media
os writer. |
IMediaStreamReader |
openStreamReader(java.io.InputStream is,
java.lang.Object... args)
Opens media
is reader. |
MediaContainer getMediaContainer(byte[] signature)
MediaContainer
type of the media defined by initial bytes signature.signature
- initial bytes of the media filenull
for unknown containerMediaContainer getMediaContainer(java.io.File file) throws java.io.IOException
MediaContainer
type of the media file
.file
- media filenull
for unknown containerjava.io.IOException
- if an I/O exception occurredIMediaFileReader openFileReader(ByteArray file, java.lang.Object... args) throws java.io.IOException
file
reader.file
- media file contentargs
- java.io.IOException
- if an I/O exception occurredIMediaWriter openFileWriter(java.io.File file, MediaContainer container, java.lang.Object... args) throws java.io.IOException
file
writer.
Note:
- You should IMediaWriter.close()
the file once done with it.
file
- media filecontainer
- media containerargs
- java.io.IOException
- if an I/O exception occurredIMediaWriter openOutputStreamWriter(java.io.OutputStream os, MediaContainer container, java.lang.Object... args) throws java.io.IOException
os
writer.
Note:
- You should IMediaWriter.close()
the output stream once done with it.
os
- media output streamcontainer
- media containerargs
- java.io.IOException
- if an I/O exception occurredIMediaStreamReader openStreamReader(java.io.InputStream is, java.lang.Object... args) throws java.io.IOException
is
reader.
Note:
- You should IMediaStreamReader#close(Object)
the input stream once done with it.
is
- media input streamargs
- java.io.IOException
- if an I/O exception occurred