package com.googlecode.mp4parser.boxes.apple;

import com.googlecode.mp4parser.util.ChannelHelper;

import java.nio.ByteBuffer;
import java.util.logging.Logger;

/**
 * Created by Tobias Bley / UltraMixer on 04/25/2014.
 */
public class AppleCoverBox extends AppleDataBox {
    private Logger logger = Logger.getLogger(getClass().getName());
    private byte[] data;

    public AppleCoverBox() {
        super("covr", 1);
    }

    @Override
    protected byte[] writeData() {
        return data;
    }

    @Override
    protected void parseData(ByteBuffer data) {

        this.data =  new byte[data.limit()];
        data.get(this.data);
    }

    @Override
    protected int getDataLength() {
        return data.length;
    }

}

@@ -727,12 +727,74 @@
 h;%0A    %7D
+%0A    public byte%5B%5D getCoverData() %7B%0A        return data;%0A    %7D
 %0A%0A%7D%0A

add accessor to data as sugested by Alden Torres. Thank you, Alden!