com.vwp.net
Class PlayThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.vwp.net.PlayThread
All Implemented Interfaces:
Runnable

public abstract class PlayThread
extends Thread

This class is some kin dof placeholder for an class that handles custom data when setInputStream() is called handing over a valid InputStream. This class is required from DownloadCacheManager when a CUSTOMDATA is downloaded in background. Here the DownloadCacheManager requires an object that has inherited from PlayThread and implements the related replay/display/... functionality that belongs to these custom data. When these data are downloaded fully, the DownloadChacheManager calls setInputStream() to start using the data.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PlayThread()
           
 
Method Summary
abstract  void close()
          Stop replaying of sound data and close all open ressources, clean up completely.
abstract  void setInputStream(InputStream extin)
          Set an input stream of a downloaded soundfile to let it replay by an audio player that inherits from this class
abstract  void setVolume(float volume)
          Sets the volume of a audio stream
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlayThread

public PlayThread()
Method Detail

setInputStream

public abstract void setInputStream(InputStream extin)
Set an input stream of a downloaded soundfile to let it replay by an audio player that inherits from this class

Parameters:
extin - the InputStream of the downloaded soundfile

close

public abstract void close()
Stop replaying of sound data and close all open ressources, clean up completely.


setVolume

public abstract void setVolume(float volume)
Sets the volume of a audio stream

Parameters:
volume - the volume in percent