1 package com.coremedia.iso.boxes.apple; 2 3 import java.util.logging.Logger; 4 5 /** 6 * 7 */ 8 public final class AppleCoverBox extends AbstractAppleMetaDataBox { 9 private static Logger LOG = Logger.getLogger(AppleCoverBox.class.getName()); 10 public static final String TYPE = "covr"; 11 12 AppleCoverBox()13 public AppleCoverBox() { 14 super(TYPE); 15 } 16 17 setPng(byte[] pngData)18 public void setPng(byte[] pngData) { 19 appleDataBox = new AppleDataBox(); 20 appleDataBox.setVersion(0); 21 appleDataBox.setFlags(0xe); 22 appleDataBox.setFourBytes(new byte[4]); 23 appleDataBox.setData(pngData); 24 } 25 26 setJpg(byte[] jpgData)27 public void setJpg(byte[] jpgData) { 28 appleDataBox = new AppleDataBox(); 29 appleDataBox.setVersion(0); 30 appleDataBox.setFlags(0xd); 31 appleDataBox.setFourBytes(new byte[4]); 32 appleDataBox.setData(jpgData); 33 } 34 35 @Override setValue(String value)36 public void setValue(String value) { 37 LOG.warning("---"); 38 } 39 40 @Override getValue()41 public String getValue() { 42 return "---"; 43 } 44 }