FileDocCategorySizeDatePackage
MetaBoxTest.javaAPI Docmp4parser 1.0-RC-174778Wed Dec 19 20:10:22 GMT 2012com.coremedia.iso.boxes

MetaBoxTest

public class MetaBoxTest extends Object
Take a real world metabox, parse, write and compare.

Fields Summary
byte[]
metaBox
Constructors Summary
Methods Summary
public voidtestRooundTrip()

        IsoFile isoFile = new IsoFile(new ByteBufferByteChannel(ByteBuffer.wrap(metaBox)));
        ByteArrayOutputStream baos = new ByteArrayOutputStream();

        isoFile.getBox(Channels.newChannel(baos));
        Assert.assertArrayEquals(metaBox, baos.toByteArray());