rockbox/songdbj/RundbEntry.java
Michiel Van Der Kolk 9fee0ec4ca Songdb java version, source. only 1.5 compatible
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7101 a1c6a512-1295-4272-9138-f99709370657
2005-07-11 15:42:37 +00:00

28 lines
No EOL
543 B
Java

import java.io.*;
public class RundbEntry extends Entry {
protected FileEntry file;
protected short rating, voladj;
protected int playcount,lastplayed;
public RundbEntry(FileEntry f) {
file=f;
rating=0;
voladj=0;
playcount=0;
lastplayed=0;
}
public void write(DataOutputStream w) throws IOException {
w.writeInt(file.getOffset());
w.writeInt(file.getHash());
w.writeShort(rating);
w.writeShort(voladj);
w.writeInt(playcount);
w.writeInt(lastplayed);
}
public static int entrySize() {
return 20;
}
}