System.out.println(file.getGenre() + " " + genreNo + " " + file.getTitle());
	private void parseTag(String fileName) {		if(fileName.substring(fileName.length()-4, fileName.length()).equalsIgnoreCase(".mp3")) {			try {				MP3File file = new MP3File(new File(fileName));				song = new MP3Song();								//song.setID(this.getMaxSongId()+1);				song.setTitle(file.getTitle());				song.setArtist(file.getArtist());				song.setAlbum(file.getAlbum());				try {					song.setYear(Integer.parseInt(file.getYear()));				}				catch(NumberFormatException ex) {					song.setYear(0);				}				int genreNo = parseGenre(file.getGenre());				System.out.println(file.getGenre() + " " + genreNo + " " + file.getTitle());				if(genreNo != 0) {					song.setGenre(GENRES[genreNo]);					song.setGenre(genreNo);				}				else {					song.setGenre(file.getGenre());				}				song.setTrackNo(file.getTrack());				song.setBitrate(file.getBitRate());				song.setLength((int)file.getPlayingTime());				song.setFileSize(file.getFileSize());				song.setFileName(fileName);				song.setLastModified(new File(fileName).lastModified());				song.setHashCode(new File(fileName).hashCode());				song.setCodec(MP3Song.MP3);							}			catch(Exception ex) {				System.out.println("Error (Tag:parseTag) : " + ex);			}		}		else if(fileName.substring(fileName.length()-4, fileName.length()).equalsIgnoreCase(".ogg")) {			try {				VorbisInfo vorbis = new VorbisInfo(new BufferedInputStream(new FileInputStream(fileName)));								song = new MP3Song();								//System.out.println(vorbis.toString());				if(vorbis.getComments("title") != null) {					song.setTitle((String)vorbis.getComments("title").get(0));				}				if(vorbis.getComments("artist") != null) {					song.setArtist((String)vorbis.getComments("artist").get(0));				}				if(vorbis.getComments("album") != null) {					song.setAlbum((String)vorbis.getComments("album").get(0));				}				if(vorbis.getComments("date") != null) {					song.setYear(Integer.parseInt((String)vorbis.getComments("date").get(0)));				}				if(vorbis.getComments("genre") != null) {					int genreNo = parseGenre((String)vorbis.getComments("genre").get(0));					System.out.println((String)vorbis.getComments("genre").get(0) + " " + genreNo + " " + (String)vorbis.getComments("title").get(0));					if(genreNo != 0) {						song.setGenre(GENRES[genreNo]);						song.setGenre(genreNo);					}					else {						song.setGenre((String)vorbis.getComments("genre").get(0));					}				}				if(vorbis.getComments("tracknumber") != null) {					song.setTrackNo(Integer.parseInt((String)vorbis.getComments("tracknumber").get(0)));				}				song.setBitrate((int)vorbis.getBitrate());				song.setLength(0);				song.setFileSize(new File(fileName).length());				song.setFileName(fileName);				song.setLastModified(new File(fileName).lastModified());				song.setHashCode(new File(fileName).hashCode());				song.setCodec(MP3Song.OGG);							}			catch(IOException ex) {				System.out.println(ex);			}		}	}