Package org.mp4parser

Interface ParsableBox

    • Method Summary

      Modifier and Type Method Description
      void parse​(ReadableByteChannel dataSource, ByteBuffer header, long contentSize, BoxParser boxParser)
      Parses the box excluding the already parsed header (size, 4cc, [long-size], [user-type]).
    • Method Detail

      • parse

        void parse​(ReadableByteChannel dataSource,
                   ByteBuffer header,
                   long contentSize,
                   BoxParser boxParser)
            throws IOException
        Parses the box excluding the already parsed header (size, 4cc, [long-size], [user-type]). The remaining size of the box is the contentSize, contentSize number of bytes should be read from the box source (readableByteChannel). If you need the header buffer at a later stage you have to create a copy.
        Parameters:
        dataSource - the source for this box
        header - the box' already parsed header (create copy if you need it later as it will be overwritten)
        contentSize - remaining bytes of this box
        boxParser - use it to parse sub-boxes.
        Throws:
        IOException - in case of an error during a read operation