All Packages Class Hierarchy This Package Previous Next Index
Class jclass.chart.URLDataSource
java.lang.Object
|
+----jclass.chart.InputStreamDataSource
|
+----jclass.chart.URLDataSource
- public class URLDataSource
- extends InputStreamDataSource
-
URLDataSource(String)
-
-
URLDataSource(String, String)
-
-
URLDataSource(String, String, String)
-
-
URLDataSource(URL, String)
-
URLDataSource
public URLDataSource(String url) throws MalformedURLException, IOException
- Parameters:
- url - A String representing the location of the data file.
eg. http://www.klg.com/data.file
- Throws: MalformedURLException
- If the specified URL is not in a
valid format
- Throws: IOException
- If there is some problem reading the file
URLDataSource
public URLDataSource(String host,
String file) throws MalformedURLException, IOException
- Parameters:
- host - The WWW hostname
- file - the fully-qualified name of the file on the server
- Throws: MalformedURLException
- If the specified URL is not in a
valid format
- Throws: IOException
- If there is some problem reading the file
URLDataSource
public URLDataSource(String protocol,
String host,
String file) throws MalformedURLException, IOException
- Parameters:
- protocol - The protocol to use to access the file. Currently only
http is supported.
- host - The WWW hostname
- file - the fully-qualified name of the file on the server
- Throws: MalformedURLException
- If the specified URL is not in a
valid format
- Throws: IOException
- If there is some problem reading the file
URLDataSource
public URLDataSource(URL base,
String file) throws MalformedURLException, IOException
- Parameters:
- base - A URL object representing the directory in which to find
the file
- file - the name of the file on the server
- Throws: MalformedURLException
- If the specified URL is not in a
valid format
- Throws: IOException
- If there is some problem reading the file
- See Also:
- URL
All Packages Class Hierarchy This Package Previous Next Index