}
public void read(final RandomAccessFile file) throws TagNotFoundException, IOException {
final byte[] buffer = new byte[30];
if (this.seek(file) == false) {
throw new TagNotFoundException("ID3v1.1 tag not found");
}
file.read(buffer, 0, 30);
this.title = new String(buffer, 0, 30, "ISO-8859-1").trim();
file.read(buffer, 0, 30);
this.artist = new String(buffer, 0, 30, "ISO-8859-1").trim();
file.read(buffer, 0, 30);
this.album = new String(buffer, 0, 30, "ISO-8859-1").trim();
file.read(buffer, 0, 4);
this.year = new String(buffer, 0, 4, "ISO-8859-1").trim();
file.read(buffer, 0, 28);
this.comment = new String(buffer, 0, 28, "ISO-8859-1").trim();
// if this value is zero, then check the next value
// to see if it's the track number. ID3v1.1
file.read(buffer, 0, 2);
if (buffer[0] == 0) {
this.track = buffer[1];
} else {
throw new TagNotFoundException("ID3v1.1 Tag Not found");
}
file.read(buffer, 0, 1);
this.genre = buffer[0];
}