@Test public void testCreateID3v11FromID3v23WithGenreWithHyphen() throws Exception { TagOptionSingleton.getInstance().setWriteMp3GenresAsText(true); ID3v23Tag v2Tag = new ID3v23Tag(); String genreName = "Hip-Hop"; v2Tag.setField(FieldKey.GENRE, genreName); ID3v11Tag v1Tag = new ID3v11Tag(v2Tag); assertThat(v1Tag.getFirstGenre(), is(equalTo(genreName))); }
public void setField(TagField field) { FieldKey genericKey = FieldKey.valueOf(field.getId()); if (genericKey == FieldKey.TRACK) { setTrack(field.toString()); } else { super.setField(field); } }
ID3v11Tag extends ID3v1Tag { public void setField(TagField field) { FieldKey genericKey = FieldKey.valueOf(field.getId()); if (genericKey == FieldKey.TRACK) { setTrack(field.toString()); } else { super.setField(field); } } }
ID3v11Tag extends ID3v1Tag { public void setField(TagField field) { FieldKey genericKey = FieldKey.valueOf(field.getId()); if (genericKey == FieldKey.TRACK) { setTrack(field.toString()); } else { super.setField(field); } } ID3v11Tag();  ID3v11Tag(ID3v11Tag copyObject);  ID3v11Tag(BaseID3Tag mp3tag);  ID3v11Tag(FileOperator fileOperator, String loggingFilename); }
ID3v11Tag extends ID3v1Tag { public void setField(TagField field) { FieldKey genericKey = FieldKey.valueOf(field.getId()); if (genericKey == FieldKey.TRACK) { setTrack(field.toString()); } else { super.setField(field); } } ID3v11Tag();  ID3v11Tag(ID3v11Tag copyObject);  ID3v11Tag(BaseID3Tag mp3tag);  ID3v11Tag(FileOperator fileOperator, String loggingFilename); byte getRelease(); byte getMajorVersion(); byte getRevision(); int getFieldCount(); void setComment(String comment); String getFirstComment(); void setTrack(String trackValue); String getFirstTrack(); @SuppressWarnings("unused") void addTrack(String track); ImmutableList<TagField> getTrack(); void setField(TagField field); ImmutableList<TagField> getFields(FieldKey genericKey); @Override ImmutableSet<FieldKey> getSupportedFields(); String getFirst(FieldKey genericKey); Optional<TagField> getFirstField(String id); boolean isEmpty(); Tag deleteField(FieldKey genericKey); boolean equals(Object obj); boolean seek(ByteBuffer byteBuffer); void read(ByteBuffer byteBuffer); void write(RandomAccessFile file); void createStructure(); }
ID3v11Tag extends ID3v1Tag { public void setField(TagField field) { FieldKey genericKey = FieldKey.valueOf(field.getId()); if (genericKey == FieldKey.TRACK) { setTrack(field.toString()); } else { super.setField(field); } } ID3v11Tag();  ID3v11Tag(ID3v11Tag copyObject);  ID3v11Tag(BaseID3Tag mp3tag);  ID3v11Tag(FileOperator fileOperator, String loggingFilename); byte getRelease(); byte getMajorVersion(); byte getRevision(); int getFieldCount(); void setComment(String comment); String getFirstComment(); void setTrack(String trackValue); String getFirstTrack(); @SuppressWarnings("unused") void addTrack(String track); ImmutableList<TagField> getTrack(); void setField(TagField field); ImmutableList<TagField> getFields(FieldKey genericKey); @Override ImmutableSet<FieldKey> getSupportedFields(); String getFirst(FieldKey genericKey); Optional<TagField> getFirstField(String id); boolean isEmpty(); Tag deleteField(FieldKey genericKey); boolean equals(Object obj); boolean seek(ByteBuffer byteBuffer); void read(ByteBuffer byteBuffer); void write(RandomAccessFile file); void createStructure();  }