org.gamenet.util
Class WavInputStreamDataSource

java.lang.Object
  extended byjavax.media.protocol.DataSource
      extended byjavax.media.protocol.PullDataSource
          extended byorg.gamenet.util.WavInputStreamDataSource
All Implemented Interfaces:
Controls, Controls, Duration

public class WavInputStreamDataSource
extends PullDataSource


Field Summary
private  InputStream inputStream
           
private static ContentDescriptor waveContentDescriptor
           
 
Fields inherited from class javax.media.protocol.DataSource
 
Fields inherited from interface javax.media.Duration
DURATION_UNBOUNDED, DURATION_UNKNOWN
 
Constructor Summary
WavInputStreamDataSource()
           
WavInputStreamDataSource(InputStream anInputStream)
           
 
Method Summary
 void connect()
           
 void disconnect()
           
 String getContentType()
           
 Object getControl(String aControlName)
           
 Object[] getControls()
           
 Time getDuration()
           
 PullSourceStream[] getStreams()
           
 void setInputStream(InputStream anInputStream)
           
 void start()
           
 void stop()
           
 
Methods inherited from class javax.media.protocol.DataSource
getLocator, initCheck, setLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.media.Duration
 

Field Detail

waveContentDescriptor

private static final ContentDescriptor waveContentDescriptor

inputStream

private InputStream inputStream
Constructor Detail

WavInputStreamDataSource

public WavInputStreamDataSource()

WavInputStreamDataSource

public WavInputStreamDataSource(InputStream anInputStream)
Method Detail

setInputStream

public void setInputStream(InputStream anInputStream)

getStreams

public PullSourceStream[] getStreams()

connect

public void connect()
             throws IOException
Throws:
IOException

disconnect

public void disconnect()

getContentType

public String getContentType()

getControl

public Object getControl(String aControlName)

getControls

public Object[] getControls()

getDuration

public Time getDuration()

start

public void start()
           throws IOException
Throws:
IOException

stop

public void stop()
          throws IOException
Throws:
IOException