예제 #1
0
파일: ID3v11Tag.java 프로젝트: flyfire/temp
 public void setField(TagField field) {
   FieldKey genericKey = FieldKey.valueOf(field.getId());
   if (genericKey == FieldKey.TRACK) {
     setTrack(field.toString());
   } else {
     super.setField(field);
   }
 }
예제 #2
0
  public void setField(TagField field) {
    FieldKey genericKey = FieldKey.valueOf(field.getId());
    switch (genericKey) {
      case ARTIST:
        setArtist(field.toString());
        break;

      case ALBUM:
        setAlbum(field.toString());
        break;

      case TITLE:
        setTitle(field.toString());
        break;

      case GENRE:
        setGenre(field.toString());
        break;

      case YEAR:
        setYear(field.toString());
        break;

      case COMMENT:
        setComment(field.toString());
        break;
    }
  }