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

org.mp4parser.boxes.iso14496.part12.ItemDataBox Maven / Gradle / Ivy

package org.mp4parser.boxes.iso14496.part12;

import org.mp4parser.support.AbstractBox;

import java.nio.ByteBuffer;

/**
 * 

4cc = "{@value #TYPE}"

*/ public class ItemDataBox extends AbstractBox { public static final String TYPE = "idat"; ByteBuffer data = ByteBuffer.allocate(0); public ItemDataBox() { super(TYPE); } public ByteBuffer getData() { return data; } public void setData(ByteBuffer data) { this.data = data; } @Override protected long getContentSize() { return data.limit(); } @Override public void _parseDetails(ByteBuffer content) { data = content.slice(); content.position(content.position() + content.remaining()); } @Override protected void getContent(ByteBuffer byteBuffer) { byteBuffer.put(data); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy