Package org.mp4parser
Class IsoFile
java.lang.Object
org.mp4parser.BasicContainer
org.mp4parser.IsoFile
- All Implemented Interfaces:
Closeable,AutoCloseable,Container
The most upper container for ISO Boxes. It is a container box that is a file.
Uses IsoBufferWrapper to access the underlying file.
-
Constructor Summary
ConstructorsConstructorDescriptionIsoFile(ReadableByteChannel readableByteChannel) IsoFile(ReadableByteChannel readableByteChannel, BoxParser boxParser) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbytesToFourCC(byte[] type) voidclose()static byte[]fourCCtoBytes(String fourCC) voidShortcut 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 ).longgetSize()toString()Methods inherited from class org.mp4parser.BasicContainer
addBox, getBoxes, getBoxes, getBoxes, getContainerSize, initContainer, setBoxes, writeContainer
-
Constructor Details
-
IsoFile
- Throws:
IOException
-
IsoFile
- Throws:
IOException
-
IsoFile
- Parameters:
readableByteChannel- the data source- Throws:
IOException- in case I/O error
-
IsoFile
- Throws:
IOException
-
-
Method Details
-
fourCCtoBytes
-
bytesToFourCC
-
getSize
public long getSize() -
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 ).- Returns:
- the MovieBox or
null
-
getBox
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
toString
- Overrides:
toStringin classBasicContainer
-