/*
* myLib - https://github.com/taktod/myLib
* Copyright (c) 2014 ttProject. All rights reserved.
*
* Licensed under The MIT license.
*/
package com.ttProject.container.mp4.esds;
import java.nio.ByteBuffer;
import org.apache.log4j.Logger;
import com.ttProject.nio.channels.IReadChannel;
import com.ttProject.unit.extra.bit.Bit8;
import com.ttProject.util.BufferUtil;
import com.ttProject.util.HexUtil;
public class DecoderSpecific extends Tag {
/** ロガー */
private Logger logger = Logger.getLogger(DecoderSpecific.class);
private ByteBuffer data = null;
public DecoderSpecific(Bit8 tag) {
super(tag);
}
public DecoderSpecific() {
super(new Bit8(0x05));
}
@Override
public void minimumLoad(IReadChannel channel) throws Exception {
super.minimumLoad(channel);
data = BufferUtil.safeRead(channel, getSize());
logger.info(HexUtil.toHex(data, true));
}
@Override
public void load(IReadChannel channel) throws Exception {
}
@Override
protected void requestUpdate() throws Exception {
}
}