Updated CLI to support pause/play/status for new DACP implementation. Jukebox project...
[stereo.git] / DAAPLib / src / dacp / CLITrack.java
blob469a91df48b3cfdf11652155eda5df72379c9129
1 package dacp;
3 import java.io.IOException;
4 import java.io.InputStream;
5 import java.util.HashMap;
6 import java.util.Map;
8 import daap.DAAPConstants;
10 import interfaces.Track;
12 public class CLITrack implements Track {
14 public Map<Integer, Object> getAllTags() {
15 return tags;
18 public InputStream getStream() throws IOException {
19 return null;
22 public Object getTag(int tagID) {
23 return tags.get(tagID);
26 public int getTrackId() {
27 return id;
30 public String toString() {
31 String name = (String)tags.get(DAAPConstants.NAME);
32 String artist = (String)tags.get(DAAPConstants.ARTIST);
33 return name + " - " + artist;
36 void putTag(Integer i, Object o) {
37 tags.put(i, o);
40 void setId(int id) {
41 this.id = id;
44 private Map<Integer, Object> tags = new HashMap<Integer, Object>();
45 private int id; //package visibility