@Test public void testIsAddSupported() { final ContentBranding chunk = createChunk(0, BigInteger.ZERO); Assert.assertFalse(chunk.isAddSupported(new MetadataDescriptor("arbitrary"))); Assert.assertTrue(chunk .isAddSupported(new MetadataDescriptor( ContainerType.CONTENT_BRANDING, ContentBranding.KEY_BANNER_URL, MetadataDescriptor.TYPE_STRING))); }
@Override public boolean isAddSupported(final MetadataDescriptor descriptor) { return ALLOWED.contains(descriptor.getName()) && super.isAddSupported(descriptor); }
ContentBranding extends MetadataContainer { @Override public boolean isAddSupported(final MetadataDescriptor descriptor) { return ALLOWED.contains(descriptor.getName()) && super.isAddSupported(descriptor); } }
ContentBranding extends MetadataContainer { @Override public boolean isAddSupported(final MetadataDescriptor descriptor) { return ALLOWED.contains(descriptor.getName()) && super.isAddSupported(descriptor); } ContentBranding();  ContentBranding(final long pos, final BigInteger size); }
ContentBranding extends MetadataContainer { @Override public boolean isAddSupported(final MetadataDescriptor descriptor) { return ALLOWED.contains(descriptor.getName()) && super.isAddSupported(descriptor); } ContentBranding();  ContentBranding(final long pos, final BigInteger size); String getBannerImageURL(); String getCopyRightURL(); @Override long getCurrentAsfChunkSize(); byte[] getImageData(); long getImageType(); @Override boolean isAddSupported(final MetadataDescriptor descriptor); void setBannerImageURL(final String imageURL); void setCopyRightURL(final String copyRight); void setImage(final long imageType, final byte[] imageData); @Override long writeInto(final OutputStream out); }
ContentBranding extends MetadataContainer { @Override public boolean isAddSupported(final MetadataDescriptor descriptor) { return ALLOWED.contains(descriptor.getName()) && super.isAddSupported(descriptor); } ContentBranding();  ContentBranding(final long pos, final BigInteger size); String getBannerImageURL(); String getCopyRightURL(); @Override long getCurrentAsfChunkSize(); byte[] getImageData(); long getImageType(); @Override boolean isAddSupported(final MetadataDescriptor descriptor); void setBannerImageURL(final String imageURL); void setCopyRightURL(final String copyRight); void setImage(final long imageType, final byte[] imageData); @Override long writeInto(final OutputStream out); final static Set<String> ALLOWED; final static String KEY_BANNER_IMAGE; final static String KEY_BANNER_TYPE; final static String KEY_BANNER_URL; final static String KEY_COPYRIGHT_URL; }