@Test public void testSetBannerImageURL() { final ContentBranding chunk = createChunk(0, BigInteger.ZERO); Assert.assertTrue(chunk.isEmpty()); Assert.assertEquals("", chunk.getBannerImageURL()); chunk.setBannerImageURL("banner image url"); Assert.assertEquals("banner image url", chunk.getBannerImageURL()); Assert.assertFalse(chunk.isEmpty()); }
public void setBannerImageURL(final String imageURL) { if (Utils.isBlank(imageURL)) { removeDescriptorsByName(KEY_BANNER_URL); } else { assertDescriptor(KEY_BANNER_URL).setStringValue(imageURL); } }
ContentBranding extends MetadataContainer { public void setBannerImageURL(final String imageURL) { if (Utils.isBlank(imageURL)) { removeDescriptorsByName(KEY_BANNER_URL); } else { assertDescriptor(KEY_BANNER_URL).setStringValue(imageURL); } } }
ContentBranding extends MetadataContainer { public void setBannerImageURL(final String imageURL) { if (Utils.isBlank(imageURL)) { removeDescriptorsByName(KEY_BANNER_URL); } else { assertDescriptor(KEY_BANNER_URL).setStringValue(imageURL); } } ContentBranding();  ContentBranding(final long pos, final BigInteger size); }
ContentBranding extends MetadataContainer { public void setBannerImageURL(final String imageURL) { if (Utils.isBlank(imageURL)) { removeDescriptorsByName(KEY_BANNER_URL); } else { assertDescriptor(KEY_BANNER_URL).setStringValue(imageURL); } } 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 { public void setBannerImageURL(final String imageURL) { if (Utils.isBlank(imageURL)) { removeDescriptorsByName(KEY_BANNER_URL); } else { assertDescriptor(KEY_BANNER_URL).setStringValue(imageURL); } } 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; }