summaryrefslogtreecommitdiffstats
path: root/songdbj/RundbEntry.java
blob: c13cbe4924a18f49526e8e29ea239ab7ac331f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
	}
}