net.sf.fmj.media.rtp
Class SocketInputStream

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.fmj.media.rtp.SocketInputStream
All Implemented Interfaces:
java.lang.Runnable, Controls, PushSourceStream, SourceStream

Deprecated. not used.

public class SocketInputStream
extends java.lang.Thread
implements PushSourceStream

A DatagramSocket Input Stream Adapter

Version:
1-1-alpha3
Author:
Andrew G D Rowley

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface javax.media.protocol.SourceStream
LENGTH_UNKNOWN
 
Constructor Summary
SocketInputStream(java.net.DatagramSocket socket)
          Deprecated. Creates a new SocketInputStream
 
Method Summary
 boolean endOfStream()
          Deprecated.  
 ContentDescriptor getContentDescriptor()
          Deprecated.  
 long getContentLength()
          Deprecated.  
 java.lang.Object getControl(java.lang.String controlType)
          Deprecated.  
 java.lang.Object[] getControls()
          Deprecated.  
 int getMinimumTransferSize()
          Deprecated.  
 void kill()
          Deprecated. Stops the socket
 int read(byte[] buffer, int offset, int length)
          Deprecated. According to API: Read from the stream without blocking.
 void run()
          Deprecated.  
 void setTransferHandler(SourceTransferHandler transferHandler)
          Deprecated.  
 
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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SocketInputStream

public SocketInputStream(java.net.DatagramSocket socket)
Deprecated. 
Creates a new SocketInputStream

Parameters:
socket - The socket to handle
Method Detail

read

public int read(byte[] buffer,
                int offset,
                int length)
Deprecated. 
Description copied from interface: PushSourceStream
According to API: Read from the stream without blocking. Returns -1 when the end of the media is reached. This implies that it can return zero if there is no data available.

Specified by:
read in interface PushSourceStream

getMinimumTransferSize

public int getMinimumTransferSize()
Deprecated. 
Specified by:
getMinimumTransferSize in interface PushSourceStream

setTransferHandler

public void setTransferHandler(SourceTransferHandler transferHandler)
Deprecated. 
Specified by:
setTransferHandler in interface PushSourceStream

getContentDescriptor

public ContentDescriptor getContentDescriptor()
Deprecated. 
Specified by:
getContentDescriptor in interface SourceStream

getContentLength

public long getContentLength()
Deprecated. 
Specified by:
getContentLength in interface SourceStream

endOfStream

public boolean endOfStream()
Deprecated. 
Specified by:
endOfStream in interface SourceStream

getControls

public java.lang.Object[] getControls()
Deprecated. 
Specified by:
getControls in interface Controls

getControl

public java.lang.Object getControl(java.lang.String controlType)
Deprecated. 
Specified by:
getControl in interface Controls

run

public void run()
Deprecated. 
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

kill

public void kill()
Deprecated. 
Stops the socket