public class Mp4AtomTree extends Object
Constructor and Description |
---|
Mp4AtomTree(File file) |
Mp4AtomTree(File file,
boolean closeExit) |
Mp4AtomTree(SeekableByteChannel fc)
Create Atom Tree
|
Mp4AtomTree(SeekableByteChannel fc,
boolean closeOnExit)
Create Atom Tree and maintain open channel to raf, should only be used if will continue
to use raf after this call, you will have to close raf yourself.
|
Modifier and Type | Method and Description |
---|---|
void |
buildChildrenOfNode(ByteBuffer moovBuffer,
DefaultMutableTreeNode parentNode) |
DefaultTreeModel |
buildTree(SeekableByteChannel fc,
boolean closeExit)
Build a tree of the atoms in the file
|
Mp4BoxHeader |
getBoxHeader(DefaultMutableTreeNode node) |
DefaultTreeModel |
getDataTree() |
List<DefaultMutableTreeNode> |
getFreeNodes() |
DefaultMutableTreeNode |
getHdlrWithinMdiaNode() |
DefaultMutableTreeNode |
getHdlrWithinMetaNode() |
DefaultMutableTreeNode |
getIlstNode() |
DefaultMutableTreeNode |
getMdatNode() |
DefaultMutableTreeNode |
getMetaNode() |
ByteBuffer |
getMoovBuffer() |
Mp4BoxHeader |
getMoovHeader() |
DefaultMutableTreeNode |
getMoovNode() |
List<DefaultMutableTreeNode> |
getStcoNodes() |
List<Mp4StcoBox> |
getStcos() |
DefaultMutableTreeNode |
getTagsNode() |
List<DefaultMutableTreeNode> |
getTrakNodes() |
DefaultMutableTreeNode |
getUdtaNode() |
void |
printAtomTree()
Display atom tree
|
public static Logger logger
public Mp4AtomTree(SeekableByteChannel fc) throws IOException, CannotReadException
fc
- IOException
CannotReadException
public Mp4AtomTree(File file) throws IOException, CannotReadException
IOException
CannotReadException
public Mp4AtomTree(File file, boolean closeExit) throws IOException, CannotReadException
IOException
CannotReadException
public Mp4AtomTree(SeekableByteChannel fc, boolean closeOnExit) throws IOException, CannotReadException
fc
- closeOnExit
- to keep randomfileaccess open, only used when randomaccessfile already being usedIOException
CannotReadException
public DefaultTreeModel buildTree(SeekableByteChannel fc, boolean closeExit) throws IOException, CannotReadException
fc
- closeExit
- false to keep randomfileacces open, only used when randomaccessfile already being usedIOException
CannotReadException
public void printAtomTree()
public void buildChildrenOfNode(ByteBuffer moovBuffer, DefaultMutableTreeNode parentNode) throws IOException, CannotReadException
moovBuffer
- parentNode
- IOException
CannotReadException
public DefaultTreeModel getDataTree()
public DefaultMutableTreeNode getMoovNode()
public List<DefaultMutableTreeNode> getStcoNodes()
public DefaultMutableTreeNode getIlstNode()
public Mp4BoxHeader getBoxHeader(DefaultMutableTreeNode node)
node
- public DefaultMutableTreeNode getMdatNode()
public DefaultMutableTreeNode getUdtaNode()
public DefaultMutableTreeNode getMetaNode()
public DefaultMutableTreeNode getHdlrWithinMetaNode()
public DefaultMutableTreeNode getHdlrWithinMdiaNode()
public DefaultMutableTreeNode getTagsNode()
public List<DefaultMutableTreeNode> getFreeNodes()
public List<DefaultMutableTreeNode> getTrakNodes()
public List<Mp4StcoBox> getStcos()
public ByteBuffer getMoovBuffer()
public Mp4BoxHeader getMoovHeader()
Copyright © 2005–2020 jthink.net. All rights reserved.