private class StandalonePlaySOMPlayer.PocketSOMConnectionHandler extends Thread
Modifier and Type | Class and Description |
---|---|
private class |
StandalonePlaySOMPlayer.PocketSOMConnectionHandler.MusicDownloadThread |
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private String |
basePath |
private Socket |
ctrlSocket |
private Socket |
dataSocket |
private static String |
KEY_BASE_PATH |
private static String |
KEY_CONNECTOR |
private int |
pin |
private boolean |
playLocal |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
StandalonePlaySOMPlayer.PocketSOMConnectionHandler(URL url,
int pin) |
Modifier and Type | Method and Description |
---|---|
private void |
handlePlaylistChange(BufferedReader dataIn,
PrintStream dataOut) |
private void |
handleSongChange(String line) |
private boolean |
login(BufferedReader in,
PrintStream out) |
void |
run() |
void |
shutdown() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private static final String KEY_BASE_PATH
private static final String KEY_CONNECTOR
private final String basePath
private final int pin
private Socket ctrlSocket
private Socket dataSocket
private boolean playLocal
public StandalonePlaySOMPlayer.PocketSOMConnectionHandler(URL url, int pin) throws UnknownHostException, IOException
UnknownHostException
IOException
public void shutdown()
private boolean login(BufferedReader in, PrintStream out) throws IOException
IOException
private void handlePlaylistChange(BufferedReader dataIn, PrintStream dataOut)
private void handleSongChange(String line)