@DoNotParseDetail public class IsoFile extends BasicContainer implements Closeable
boxParser, dataSource| Constructor and Description |
|---|
IsoFile(DataSource dataSource) |
IsoFile(DataSource dataSource,
BoxParser boxParser) |
IsoFile(String filename)
Shortcut constructor that creates a
DataSource from the
given filename and pass it to the IsoFile(DataSource)
constructor. |
| Modifier and Type | Method and Description |
|---|---|
static String |
bytesToFourCC(byte[] type) |
void |
close() |
static byte[] |
fourCCtoBytes(String fourCC) |
void |
getBox(WritableByteChannel os) |
MovieBox |
getMovieBox()
Shortcut to get the MovieBox since it is often needed and present in
nearly all ISO 14496 files (at least if they are derived from MP4 ).
|
long |
getSize() |
String |
toString() |
addBox, getBoxes, getBoxes, getBoxes, getByteBuffer, getContainerSize, hasNext, initContainer, next, remove, setBoxes, writeContainerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingpublic IsoFile(String filename) throws IOException
DataSource from the
given filename and pass it to the IsoFile(DataSource)
constructor.filename - of the MP4 file to be parsedIOException - in case I/O errorpublic IsoFile(DataSource dataSource) throws IOException
dataSource - the data sourceIOException - in case I/O errorpublic IsoFile(DataSource dataSource, BoxParser boxParser) throws IOException
IOExceptionpublic static byte[] fourCCtoBytes(String fourCC)
public static String bytesToFourCC(byte[] type)
public long getSize()
public MovieBox getMovieBox()
nullpublic void getBox(WritableByteChannel os) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class BasicContainerIOExceptionpublic String toString()
toString in class BasicContainerCopyright © 2016. All rights reserved.