public String getTitle() { if (mp3File.hasId3v2Tag() && mp3File.getId3v2Tag().getTitle() != null) { return mp3File.getId3v2Tag().getTitle(); } if (mp3File.hasId3v1Tag() && mp3File.getId3v1Tag().getTitle() != null) { return mp3File.getId3v1Tag().getTitle(); } return NO_TITLE; }
public String getTrack() { if (mp3File.hasId3v2Tag() && mp3File.getId3v2Tag().getTrack() != null) { return mp3File.getId3v2Tag().getTrack(); } if (mp3File.hasId3v1Tag() && mp3File.getId3v1Tag().getTrack() != null) { return mp3File.getId3v1Tag().getTrack(); } return UNKNOWN_TRACK; }
public String getArtist() { if (mp3File.hasId3v2Tag() && mp3File.getId3v2Tag().getArtist() != null) { return mp3File.getId3v2Tag().getArtist(); } if (mp3File.hasId3v1Tag() && mp3File.getId3v1Tag().getArtist() != null) { return mp3File.getId3v1Tag().getArtist(); } return UNKNOWN_ARTIST; }