![JAR search and dependency download from the Maven repository](/logo.png)
org.mp4parser.Box Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy