@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, next, parseContainer, remove, setBoxes, writeContainer
public 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
IOException
public String toString()
toString
in class BasicContainer
public static byte[] fourCCtoBytes(String fourCC)
public static String bytesToFourCC(byte[] type)
public long getSize()
public MovieBox getMovieBox()
null
public void getBox(WritableByteChannel os) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014. All rights reserved.