private void readTag(RandomAccessInputStream raf) throws FileNotFoundException, IOException
	{
		raf.seek(raf.length() - TAG_SIZE);
		byte[] buf = new byte[TAG_SIZE];
		raf.read(buf, 0, TAG_SIZE);
		String tag = new String(buf, 0, TAG_SIZE, ENC_TYPE);
		int start = TAG_START.length();
		title = tag.substring(start, start += TITLE_SIZE);
		artist = tag.substring(start, start += ARTIST_SIZE);
		album = tag.substring(start, start += ALBUM_SIZE);
		year = tag.substring(start, start += YEAR_SIZE);
		comment = tag.substring(start, start += COMMENT_SIZE);
		track = (int) tag.charAt(TRACK_LOCATION);
		genre = (int) tag.charAt(GENRE_LOCATION);
	}
private void readTag ( RandomAccessInputStream raf ) throws FileNotFoundException , IOException { raf . seek ( raf . length ( ) - TAG_SIZE ) ; byte [ ] buf = new byte [ TAG_SIZE ] ; raf . read ( buf , 0 , TAG_SIZE ) ; String tag = new String ( buf , 0 , TAG_SIZE , ENC_TYPE ) ; int start = TAG_START . length ( ) ; title = tag . substring ( start , start += TITLE_SIZE ) ; artist = tag . substring ( start , start += ARTIST_SIZE ) ; album = tag . substring ( start , start += ALBUM_SIZE ) ; year = tag . substring ( start , start += YEAR_SIZE ) ; comment = tag . substring ( start , start += COMMENT_SIZE ) ; track = ( int ) tag . charAt ( TRACK_LOCATION ) ; genre = ( int ) tag . charAt ( GENRE_LOCATION ) ; }
Reads the data from the id3v1 tag

@exception FileNotFoundException if an error occurs
@exception IOException if an error occurs