From 9fee0ec4ca0c5b7a334cc29dbb58e76c7a4c736e Mon Sep 17 00:00:00 2001 From: Michiel Van Der Kolk Date: Mon, 11 Jul 2005 15:42:37 +0000 Subject: Songdb java version, source. only 1.5 compatible git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7101 a1c6a512-1295-4272-9138-f99709370657 --- songdbj/RundbEntry.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 songdbj/RundbEntry.java (limited to 'songdbj/RundbEntry.java') 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 @@ +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 -- cgit v1.2.3