jreceiver.common.rpc
Interface TagEncoder

All Superinterfaces:
RpcBase

public interface TagEncoder
extends RpcBase

Tag-related queries and updates for a (possibly-remote) JRec server, returning formatted results.

Version:
$Revision: 1.5 $ $Date: 2002/07/27 11:59:32 $
Author:
Reed Esau

Field Summary
static java.lang.String ENCODE_PLAYLIST_TAG
           
static java.lang.String ENCODE_TAG
           
static java.lang.String ENCODE_TUNE_TAG
           
static java.lang.String HANDLER_NAME
           
static int TAG_ALBUM
           
static int TAG_ARG_COUNT_TUNE
           
static int TAG_ARTIST
           
static int TAG_BITRATE
           
static int TAG_CODEC
           
static int TAG_COUNT_X_4
           
static int TAG_DURATION
           
static int TAG_FILEPATH
           
static int TAG_FILESIZE
           
static int TAG_GENRE
           
static int TAG_SRC_ID
           
static int TAG_SRCTYPE
           
static int TAG_TITLE
           
static int TAG_TRACKNO
           
 
Fields inherited from interface jreceiver.common.rpc.RpcBase
DETECT
 
Method Summary
 byte[] encodePlaylistTag(int src_id, int driver_id, byte[] pattern)
          obtain binary-encoded tag info for the specified playlist source, using the specified pattern.
 byte[] encodeTag(int src_id, int driver_id, byte[] tune_pattern, byte[] playlist_pattern)
          obtain binary-encoded tag info for the specified source, be it a tune or a playlist, using the appropriate pattern.
 byte[] encodeTuneTag(int src_id, int driver_id, byte[] pattern)
          obtain binary-encoded tag info for the specified tune source, using the specified pattern.
 
Methods inherited from interface jreceiver.common.rpc.RpcBase
detect
 

Field Detail

TAG_SRC_ID

public static final int TAG_SRC_ID

TAG_SRCTYPE

public static final int TAG_SRCTYPE

TAG_FILEPATH

public static final int TAG_FILEPATH

TAG_FILESIZE

public static final int TAG_FILESIZE

TAG_TITLE

public static final int TAG_TITLE

TAG_ALBUM

public static final int TAG_ALBUM

TAG_ARTIST

public static final int TAG_ARTIST

TAG_BITRATE

public static final int TAG_BITRATE

TAG_CODEC

public static final int TAG_CODEC

TAG_DURATION

public static final int TAG_DURATION

TAG_GENRE

public static final int TAG_GENRE

TAG_COUNT_X_4

public static final int TAG_COUNT_X_4

TAG_TRACKNO

public static final int TAG_TRACKNO

TAG_ARG_COUNT_TUNE

public static final int TAG_ARG_COUNT_TUNE

HANDLER_NAME

public static final java.lang.String HANDLER_NAME

ENCODE_TAG

public static final java.lang.String ENCODE_TAG

ENCODE_TUNE_TAG

public static final java.lang.String ENCODE_TUNE_TAG

ENCODE_PLAYLIST_TAG

public static final java.lang.String ENCODE_PLAYLIST_TAG
Method Detail

encodeTag

public byte[] encodeTag(int src_id,
                        int driver_id,
                        byte[] tune_pattern,
                        byte[] playlist_pattern)
                 throws RpcException
obtain binary-encoded tag info for the specified source, be it a tune or a playlist, using the appropriate pattern.

Field mapping:

 {0}  src_id     TAG_SRC_ID   = 0;
 {1}  src_type   TAG_SRCTYPE  = 1;
 {2}  filepath   TAG_FILEPATH = 2;
 {3}  filesize   TAG_FILESIZE = 3;
 {4}  title      TAG_TITLE    = 4;
 {5}  album      TAG_ALBUM    = 5;
 {6}  artist     TAG_ARTIST   = 6;
 {7}  bitrate    TAG_BITRATE  = 7;
 {8}  codec      TAG_CODEC    = 8;    // "mp3", "wma", "ogg" and "flac"
 {9}  duration   TAG_DURATION = 9;
 {10} genre      TAG_GENRE    = 10;
 {11} tunes*4    TAG_COUNT_X_4 = 11;  // if a playlist, filled with tunecount*4
 {12} trackno    TAG_TRACKNO   = 12;
 

encodeTuneTag

public byte[] encodeTuneTag(int src_id,
                            int driver_id,
                            byte[] pattern)
                     throws RpcException
obtain binary-encoded tag info for the specified tune source, using the specified pattern.

See encodeTag for field mappings.


encodePlaylistTag

public byte[] encodePlaylistTag(int src_id,
                                int driver_id,
                                byte[] pattern)
                         throws RpcException
obtain binary-encoded tag info for the specified playlist source, using the specified pattern.

See encodeTag for field mappings.



Copyright © 2001-2002 Reed Esau, All Rights Reserved.