3 import java
.io
.IOException
;
4 import java
.io
.InputStream
;
5 import java
.util
.HashMap
;
8 import daap
.DAAPConstants
;
10 import interfaces
.Track
;
12 public class CLITrack
implements Track
{
14 public Map
<Integer
, Object
> getAllTags() {
18 public InputStream
getStream() throws IOException
{
22 public Object
getTag(int tagID
) {
23 return tags
.get(tagID
);
26 public int getTrackId() {
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
) {
44 private Map
<Integer
, Object
> tags
= new HashMap
<Integer
, Object
>();
45 private int id
; //package visibility