All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mp4parser.Box Maven / Gradle / Ivy

Go to download

A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...)

There is a newer version: 1.9.56
Show newest version
package org.mp4parser;

import java.io.IOException;
import java.nio.channels.WritableByteChannel;

/**
 * The most basic imaginable box. It does not have any parsing functionality it can be used to create boxes
 * programmatically.
 */
public interface Box {

    /**
     * The box's 4-cc type.
     *
     * @return the 4 character type of the box
     */
    String getType();

    long getSize();

    /**
     * Writes the complete box - size | 4-cc | content - to the given writableByteChannel.
     *
     * @param writableByteChannel the box's sink
     * @throws IOException in case of problems with the Channel
     */
    void getBox(WritableByteChannel writableByteChannel) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy