javax.media.protocol
Class URLDataSource

java.lang.Object
  extended byjavax.media.protocol.DataSource
      extended byjavax.media.protocol.PullDataSource
          extended byjavax.media.protocol.URLDataSource
All Implemented Interfaces:
Controls, Duration

public class URLDataSource
extends PullDataSource

This is not an official specification document, and usage is restricted.

NOTICE


(c) 2005 Sun Microsystems, Inc. All Rights Reserved.

Neither this file nor any files generated from it describe a complete specification, and they may only be used as described below. For example, no permission is given for you to incorporate this file, in whole or in part, in an implementation of a Java specification.

Sun Microsystems Inc. owns the copyright in this file and it is provided to you for informative, as opposed to normative, use. The file and any files generated from it may be used to generate other informative documentation, such as a unified set of documents of API signatures for a platform that includes technologies expressed as Java APIs. The file may also be used to produce "compilation stubs," which allow applications to be compiled and validated for such platforms.

Any derivative work of this file, such as unified javadocs or compiled stub files, must be accompanied by this notice in its entirety.

This file corresponds to the API signatures of the Java Media Framework API Version 1.0 specification. In the event of a discrepency between this file and the Java Media Framework API Version 1.0 specification, the latter takes precidence. The Java Media Framework API Version 1.0 specification is part of ISBN:1-892488-25-6, available as The Sun Specifiations for DVB, available from http://java.sun.com/products/specformhp/.


Field Summary
protected  java.net.URLConnection conn
          This is not an official specification document, and usage is restricted.
protected  boolean connected
          This is not an official specification document, and usage is restricted.
protected  ContentDescriptor contentType
          This is not an official specification document, and usage is restricted.
 
Fields inherited from interface javax.media.Duration
DURATION_UNBOUNDED, DURATION_UNKNOWN
 
Constructor Summary
protected URLDataSource()
          This is not an official specification document, and usage is restricted.
  URLDataSource(java.net.URL arg1)
          This is not an official specification document, and usage is restricted.
 
Method Summary
 void connect()
          This is not an official specification document, and usage is restricted.
 void disconnect()
          This is not an official specification document, and usage is restricted.
 java.lang.String getContentType()
          This is not an official specification document, and usage is restricted.
 java.lang.Object getControl(java.lang.String arg1)
          This is not an official specification document, and usage is restricted.
 java.lang.Object[] getControls()
          This is not an official specification document, and usage is restricted.
 Time getDuration()
          This is not an official specification document, and usage is restricted.
 PullSourceStream[] getStreams()
          This is not an official specification document, and usage is restricted.
 void start()
          This is not an official specification document, and usage is restricted.
 void stop()
          This is not an official specification document, and usage is restricted.
 
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
 

Field Detail

connected

protected boolean connected
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.


conn

protected java.net.URLConnection conn
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.


contentType

protected ContentDescriptor contentType
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.

Constructor Detail

URLDataSource

protected URLDataSource()
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.


URLDataSource

public URLDataSource(java.net.URL arg1)
              throws java.io.IOException
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.

Method Detail

getControl

public java.lang.Object getControl(java.lang.String arg1)
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.

Specified by:
getControl in interface Controls
Specified by:
getControl in class DataSource

getControls

public java.lang.Object[] getControls()
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.

Specified by:
getControls in interface Controls
Specified by:
getControls in class DataSource

getContentType

public java.lang.String getContentType()
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.

Specified by:
getContentType in class DataSource

getDuration

public Time getDuration()
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.

Specified by:
getDuration in interface Duration
Specified by:
getDuration in class DataSource

getStreams

public PullSourceStream[] getStreams()
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.

Specified by:
getStreams in class PullDataSource

connect

public void connect()
             throws java.io.IOException
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.

Specified by:
connect in class DataSource
Throws:
java.io.IOException

disconnect

public void disconnect()
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.

Specified by:
disconnect in class DataSource

start

public void start()
           throws java.io.IOException
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.

Specified by:
start in class DataSource
Throws:
java.io.IOException

stop

public void stop()
          throws java.io.IOException
This is not an official specification document, and usage is restricted. Please refer to the notice at the top of this file.

Specified by:
stop in class DataSource
Throws:
java.io.IOException