public final class URLDataSource2 extends Object implements DataSource
Constructor and Description |
---|
URLDataSource2(URL url)
Creates a URLDataSource from a URL object
|
Modifier and Type | Method and Description |
---|---|
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
|
public URLDataSource2(URL url)
public String getContentType()
getContentType
in interface DataSource
public String getName()
getName
in interface DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
Copyright © 2015 Lucee