summaryrefslogtreecommitdiff
path: root/songdbj/RundbEntry.java
diff options
context:
space:
mode:
Diffstat (limited to 'songdbj/RundbEntry.java')
-rw-r--r--songdbj/RundbEntry.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/songdbj/RundbEntry.java b/songdbj/RundbEntry.java
new file mode 100644
index 0000000000..c13cbe4924
--- /dev/null
+++ b/songdbj/RundbEntry.java
@@ -0,0 +1,28 @@
1import java.io.*;
2
3public class RundbEntry extends Entry {
4 protected FileEntry file;
5 protected short rating, voladj;
6 protected int playcount,lastplayed;
7
8 public RundbEntry(FileEntry f) {
9 file=f;
10 rating=0;
11 voladj=0;
12 playcount=0;
13 lastplayed=0;
14 }
15
16 public void write(DataOutputStream w) throws IOException {
17 w.writeInt(file.getOffset());
18 w.writeInt(file.getHash());
19 w.writeShort(rating);
20 w.writeShort(voladj);
21 w.writeInt(playcount);
22 w.writeInt(lastplayed);
23 }
24
25 public static int entrySize() {
26 return 20;
27 }
28} \ No newline at end of file