javax.activation
Class URLDataSource

java.lang.Object
  extended byjavax.activation.URLDataSource
All Implemented Interfaces:
DataSource

public class URLDataSource
extends Object
implements DataSource

Version:
$Revision: 1.3 $ $Date: 2004/03/10 10:00:22 $

Constructor Summary
URLDataSource(URL url)
          Creates a URLDataSource from a URL object
 
Method Summary
 String getContentType()
          Returns the value of the URL content-type header field
 InputStream getInputStream()
          Returns an InputStream obtained from the data source
 String getName()
          Returns the file name of the URL object
 OutputStream getOutputStream()
          Returns an OutputStream obtained from the data source
 URL getURL()
          Returns the URL of the data source
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLDataSource

public URLDataSource(URL url)
Creates a URLDataSource from a URL object

Method Detail

getContentType

public String getContentType()
Returns the value of the URL content-type header field

Specified by:
getContentType in interface DataSource

getName

public String getName()
Returns the file name of the URL object

Specified by:
getName in interface DataSource

getInputStream

public InputStream getInputStream()
                           throws IOException
Returns an InputStream obtained from the data source

Specified by:
getInputStream in interface DataSource
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Returns an OutputStream obtained from the data source

Specified by:
getOutputStream in interface DataSource
Throws:
IOException

getURL

public URL getURL()
Returns the URL of the data source



Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.