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
This class takes a URL and turns it into a Chartable data source.

Properties

Name Description
DataInterpretation The DataInterpretation property is responsible for what format is the data in.
DataItem The DataItem property specifies a data item from the data source.
Name The Name property defines the name of the data object. Default value is null.
NumRows The NumRows property of the data source, which specifies the number of rows of data available.
PointLabels The value of the PointLabels property. The PointLabels property is an indexed property that contains a list of point labels provided by the data source.
Row The Row property specifies an entire row of data items.
SeriesLabel The value of the SeriesLabel property. The SeriesLabel property defines the label that is associated with a data series. The SeriesLabel can be unparsed JCString text, whereas SeriesName is a name used for retrieving data series.
SeriesName The value of the SeriesName property. The SeriesName property is a string associated with a row in a data source. It is used by ChartDataView as the name for a data series.


Constructor Index

 o URLDataSource(String)
 o URLDataSource(String, String)
 o URLDataSource(String, String, String)
 o URLDataSource(URL, String)

Constructors

 o 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
 o 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
 o 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
 o 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