Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jreceiver.common.rpc
Interface TagEncoder  view TagEncoder download TagEncoder.java

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 $

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
See Also:
Constant Field Values

TAG_SRCTYPE

public static final int TAG_SRCTYPE
See Also:
Constant Field Values

TAG_FILEPATH

public static final int TAG_FILEPATH
See Also:
Constant Field Values

TAG_FILESIZE

public static final int TAG_FILESIZE
See Also:
Constant Field Values

TAG_TITLE

public static final int TAG_TITLE
See Also:
Constant Field Values

TAG_ALBUM

public static final int TAG_ALBUM
See Also:
Constant Field Values

TAG_ARTIST

public static final int TAG_ARTIST
See Also:
Constant Field Values

TAG_BITRATE

public static final int TAG_BITRATE
See Also:
Constant Field Values

TAG_CODEC

public static final int TAG_CODEC
See Also:
Constant Field Values

TAG_DURATION

public static final int TAG_DURATION
See Also:
Constant Field Values

TAG_GENRE

public static final int TAG_GENRE
See Also:
Constant Field Values

TAG_COUNT_X_4

public static final int TAG_COUNT_X_4
See Also:
Constant Field Values

TAG_TRACKNO

public static final int TAG_TRACKNO
See Also:
Constant Field Values

TAG_ARG_COUNT_TUNE

public static final int TAG_ARG_COUNT_TUNE
See Also:
Constant Field Values

HANDLER_NAME

public static final java.lang.String HANDLER_NAME
See Also:
Constant Field Values

ENCODE_TAG

public static final java.lang.String ENCODE_TAG
See Also:
Constant Field Values

ENCODE_TUNE_TAG

public static final java.lang.String ENCODE_TUNE_TAG
See Also:
Constant Field Values

ENCODE_PLAYLIST_TAG

public static final java.lang.String ENCODE_PLAYLIST_TAG
See Also:
Constant Field Values
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.