diff options
Diffstat (limited to 'songdbj/RundbEntry.java')
| -rw-r--r-- | songdbj/RundbEntry.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/songdbj/RundbEntry.java b/songdbj/RundbEntry.java new file mode 100644 index 0000000..c13cbe4 --- /dev/null +++ b/songdbj/RundbEntry.java @@ -0,0 +1,28 @@ +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; + } +}
\ No newline at end of file |