9fee0ec4ca
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7101 a1c6a512-1295-4272-9138-f99709370657
28 lines
No EOL
543 B
Java
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;
|
|
}
|
|
} |