@Test public void testSetTitle() { final ContentDescription chunk = createChunk(0, BigInteger.ZERO); Assert.assertTrue(chunk.isEmpty()); Assert.assertEquals("", chunk.getTitle()); chunk.setTitle(""); Assert.assertTrue(chunk.isEmpty()); chunk.setTitle("title"); Assert.assertEquals("title", chunk.getTitle()); Assert.assertFalse(chunk.isEmpty()); try { chunk.setTitle(AbstractChunk .createAString(MetadataDescriptor.WORD_MAXVALUE + 1)); Assert.fail("Exception expected"); } catch (IllegalArgumentException iae) { } }
public void setTitle(final String songTitle) throws IllegalArgumentException { setStringValue(KEY_TITLE, songTitle); }
ContentDescription extends MetadataContainer { public void setTitle(final String songTitle) throws IllegalArgumentException { setStringValue(KEY_TITLE, songTitle); } }
ContentDescription extends MetadataContainer { public void setTitle(final String songTitle) throws IllegalArgumentException { setStringValue(KEY_TITLE, songTitle); } ContentDescription();  ContentDescription(final long pos, final BigInteger chunkLen); }
ContentDescription extends MetadataContainer { public void setTitle(final String songTitle) throws IllegalArgumentException { setStringValue(KEY_TITLE, songTitle); } ContentDescription();  ContentDescription(final long pos, final BigInteger chunkLen); String getAuthor(); String getComment(); String getCopyRight(); @Override long getCurrentAsfChunkSize(); String getRating(); String getTitle(); @Override boolean isAddSupported(final MetadataDescriptor descriptor); @Override String prettyPrint(final String prefix); void setAuthor(final String fileAuthor); void setComment(final String tagComment); void setCopyright(final String cpright); void setRating(final String ratingText); void setTitle(final String songTitle); @Override long writeInto(final OutputStream out); }
ContentDescription extends MetadataContainer { public void setTitle(final String songTitle) throws IllegalArgumentException { setStringValue(KEY_TITLE, songTitle); } ContentDescription();  ContentDescription(final long pos, final BigInteger chunkLen); String getAuthor(); String getComment(); String getCopyRight(); @Override long getCurrentAsfChunkSize(); String getRating(); String getTitle(); @Override boolean isAddSupported(final MetadataDescriptor descriptor); @Override String prettyPrint(final String prefix); void setAuthor(final String fileAuthor); void setComment(final String tagComment); void setCopyright(final String cpright); void setRating(final String ratingText); void setTitle(final String songTitle); @Override long writeInto(final OutputStream out); final static Set<String> ALLOWED; final static String KEY_AUTHOR; final static String KEY_COPYRIGHT; final static String KEY_DESCRIPTION; final static String KEY_RATING; final static String KEY_TITLE; }