|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Playlists-related queries and updates for a (possibly-remote) JRec server, returning formatted results.
Calls are made remotely to a PlaylistsHandler class.
Field Summary | |
static java.lang.String |
ENCODE_PLAYLISTS
|
static java.lang.String |
HANDLER_NAME
|
Fields inherited from interface jreceiver.common.rpc.RpcBase |
DETECT |
Method Summary | |
java.lang.String |
encodePlaylists(java.lang.String pattern,
int rec_offset,
int rec_count)
Obtain a TEXT list of of all playlists (both static files and dynamic playlists) formatted with a caller-specified pattern, for use in displaying a menu to the user. |
Methods inherited from interface jreceiver.common.rpc.RpcBase |
detect |
Field Detail |
public static final java.lang.String HANDLER_NAME
public static final java.lang.String ENCODE_PLAYLISTS
Method Detail |
public java.lang.String encodePlaylists(java.lang.String pattern, int rec_offset, int rec_count) throws RpcException
Data is returned as a String. All results are concatenated. Any record separators needed must be specified in the pattern.
Formatting of each record is done through a MessageFormat pattern. As an example, the following
String pattern = "{0,hex}=P{1}\r\n";will format each result like
1d0=PEnglishSettlement\r\nwhere {0,hex} will be replaced with the source identifier (src_id), in hexadecimal; {1} will be replaced with the playlist title.
Note that the 'hex' element format isn't a standard formatter of MessageFormat, but it is supported here in a minor kludge.
This method provides a wrapper for the remote call to the server.
pattern
- String
a MessageFormat pattern where {0} will be replaced
with the src_id and {1} will be replaced with the tune title.begin
- int
the index of the first item of the results to returnend
- int
the index of the final item of the results to returnString
concatenated String records.RpcException
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |