JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart.data
Class JCURLDataSource

java.lang.Object
  |
  +--com.klg.jclass.chart.ChartDataSupport
        |
        +--com.klg.jclass.chart.data.BaseDataSource
              |
              +--com.klg.jclass.chart.data.JCInputStreamDataSource
                    |
                    +--com.klg.jclass.chart.data.JCURLDataSource
All Implemented Interfaces:
ChartDataManageable, ChartDataManager, ChartDataModel, HoleValueChartDataModel, com.klg.jclass.chart.ImageMapChartDataModel, LabelledChartDataModel, Serializable

public class JCURLDataSource
extends JCInputStreamDataSource

This class takes a URL and turns it into a JClass Chart data source.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.chart.data.JCInputStreamDataSource
charsetName, interpreter
 
Fields inherited from class com.klg.jclass.chart.data.BaseDataSource
cloneArrays, clusterImageMapInfo, holeValue, legendImageMapInfo, name, pointImageMapInfo, pointLabels, seriesImageMapInfo, seriesLabels, xvalues, yvalues
 
Fields inherited from class com.klg.jclass.chart.ChartDataSupport
source
 
Fields inherited from interface com.klg.jclass.chart.ChartDataModel
ALL
 
Constructor Summary
JCURLDataSource(String url)
          Pulls data from specified URL according to the specified data interpreter.
JCURLDataSource(String url, com.klg.jclass.chart.data.JCDataInterpreter ipr)
          Pulls data from specified URL according to the specified data interpreter.
JCURLDataSource(String url, com.klg.jclass.chart.data.JCDataInterpreter ipr, String charsetName)
          Pulls data from specified URL using the given charset according to the specified data interpreter.
JCURLDataSource(String host, String file)
          Pulls data from specified URL according to the default data interpreter.
JCURLDataSource(String host, String file, com.klg.jclass.chart.data.JCDataInterpreter ipr)
          Pulls data from specified URL according to the specified data interpreter.
JCURLDataSource(String host, String file, com.klg.jclass.chart.data.JCDataInterpreter ipr, String charsetName)
          Pulls data from specified URL using the given charset according to the specified data interpreter.
JCURLDataSource(String protocol, String host, String file)
          Pulls data from specified URL according to the default data interpreter.
JCURLDataSource(String protocol, String host, String file, com.klg.jclass.chart.data.JCDataInterpreter ipr)
          Pulls data from specified URL according to the specified data interpreter.
JCURLDataSource(String protocol, String host, String file, com.klg.jclass.chart.data.JCDataInterpreter ipr, String charsetName)
          Pulls data from specified URL using the given charset according to the specified data interpreter.
JCURLDataSource(URL base, String file)
          Pulls data from specified URL according to the default data interpreter.
JCURLDataSource(URL base, String file, com.klg.jclass.chart.data.JCDataInterpreter ipr)
          Pulls data from specified URL according to the specified data interpreter.
JCURLDataSource(URL base, String file, com.klg.jclass.chart.data.JCDataInterpreter ipr, String charsetName)
          Pulls data from specified URL using the given charset according to the specified data interpreter.
 
Methods inherited from class com.klg.jclass.chart.data.JCInputStreamDataSource
ctor, ctor, getCharsetName, getInterpreter, setCharsetName, setInterpreter
 
Methods inherited from class com.klg.jclass.chart.data.BaseDataSource
cloneCheck, cloneCheck, cloneCheck, getChartDataManager, getCloneArrays, getClusterImageMapInfo, getDataSourceName, getHoleValue, getLegendImageMapInfo, getNumSeries, getPointImageMapInfo, getPointLabels, getSeriesImageMapInfo, getSeriesLabels, getXSeries, getYSeries, setCloneArrays
 
Methods inherited from class com.klg.jclass.chart.ChartDataSupport
addChartDataListener, fireChartDataEvent, fireChartDataEvent, removeChartDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCURLDataSource

public JCURLDataSource(String url)
                throws MalformedURLException,
                       IOException
Pulls data from specified URL according to the specified data interpreter.

Parameters:
url - a String representing the location of the data file (for example, http://www.quest.com/data.file)
Throws:
MalformedURLException - A MalformedURLException is thrown if the specified URL is not in a valid format.
IOException - An IOException is thrown if there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String url,
                       com.klg.jclass.chart.data.JCDataInterpreter ipr)
                throws MalformedURLException,
                       IOException
Pulls data from specified URL according to the specified data interpreter.

Parameters:
url - a String representing the location of the data file (for example, http://www.quest.com/data.file)
ipr - Interpreter class used to interpret the data
Throws:
MalformedURLException - A MalformedURLException is thrown if the specified URL is not in a valid format.
IOException - An IOException is thrown if there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String url,
                       com.klg.jclass.chart.data.JCDataInterpreter ipr,
                       String charsetName)
                throws MalformedURLException,
                       IOException
Pulls data from specified URL using the given charset according to the specified data interpreter.

Parameters:
url - a String representing the location of the data file (for example, http://www.quest.com/data.file)
ipr - Interpreter class used to interpret the data
charsetName - The name of a supported charset
Throws:
MalformedURLException - A MalformedURLException is thrown if the specified URL is not in a valid format.
IOException - An IOException is thrown if there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String host,
                       String file)
                throws MalformedURLException,
                       IOException
Pulls data from specified URL according to the default data interpreter.

Parameters:
host - the WWW hostname
file - the fully-qualified name of the file on the server
Throws:
MalformedURLException - A MalformedURLException is thrown if the specified URL is not in a valid format.
IOException - An IOException is thrown if there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String host,
                       String file,
                       com.klg.jclass.chart.data.JCDataInterpreter ipr)
                throws MalformedURLException,
                       IOException
Pulls data from specified URL according to the specified data interpreter.

Parameters:
host - the WWW hostname
file - the fully-qualified name of the file on the server
ipr - Interpreter class used to interpret the data
Throws:
MalformedURLException - A MalformedURLException is thrown if the specified URL is not in a valid format.
IOException - An IOException is thrown if there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String host,
                       String file,
                       com.klg.jclass.chart.data.JCDataInterpreter ipr,
                       String charsetName)
                throws MalformedURLException,
                       IOException
Pulls data from specified URL using the given charset according to the specified data interpreter.

Parameters:
host - the WWW hostname
file - the fully-qualified name of the file on the server
ipr - Interpreter class used to interpret the data
charsetName - The name of a supported charset
Throws:
MalformedURLException - A MalformedURLException is thrown if the specified URL is not in a valid format.
IOException - An IOException is thrown if there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String protocol,
                       String host,
                       String file)
                throws MalformedURLException,
                       IOException
Pulls data from specified URL according to the default data interpreter.

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 - A MalformedURLException is thrown if the specified URL is not in a valid format.
IOException - An IOException is thrown if there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String protocol,
                       String host,
                       String file,
                       com.klg.jclass.chart.data.JCDataInterpreter ipr)
                throws MalformedURLException,
                       IOException
Pulls data from specified URL according to the specified data interpreter.

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
ipr - Interpreter class used to interpret the data
Throws:
MalformedURLException - A MalformedURLException is thrown if the specified URL is not in a valid format.
IOException - An IOException is thrown if there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String protocol,
                       String host,
                       String file,
                       com.klg.jclass.chart.data.JCDataInterpreter ipr,
                       String charsetName)
                throws MalformedURLException,
                       IOException
Pulls data from specified URL using the given charset according to the specified data interpreter.

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
ipr - Interpreter class used to interpret the data
charsetName - The name of a supported charset
Throws:
MalformedURLException - A MalformedURLException is thrown if the specified URL is not in a valid format.
IOException - An IOException is thrown if there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(URL base,
                       String file)
                throws MalformedURLException,
                       IOException
Pulls data from specified URL according to the default data interpreter.

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 - A MalformedURLException is thrown if the specified URL is not in a valid format.
IOException - An IOException is thrown if there is some problem reading the file.
See Also:
URL

JCURLDataSource

public JCURLDataSource(URL base,
                       String file,
                       com.klg.jclass.chart.data.JCDataInterpreter ipr)
                throws MalformedURLException,
                       IOException
Pulls data from specified URL according to the specified data interpreter.

Parameters:
base - a URL object representing the directory in which to find the file
file - the name of the file on the server
ipr - Interpreter class used to interpret the data
Throws:
MalformedURLException - A MalformedURLException is thrown if the specified URL is not in a valid format.
IOException - An IOException is thrown if there is some problem reading the file.
See Also:
URL

JCURLDataSource

public JCURLDataSource(URL base,
                       String file,
                       com.klg.jclass.chart.data.JCDataInterpreter ipr,
                       String charsetName)
                throws MalformedURLException,
                       IOException
Pulls data from specified URL using the given charset according to the specified data interpreter.

Parameters:
base - a URL object representing the directory in which to find the file
file - the name of the file on the server
ipr - Interpreter class used to interpret the data
charsetName - The name of a supported charset
Throws:
MalformedURLException - A MalformedURLException is thrown if the specified URL is not in a valid format.
IOException - An IOException is thrown if there is some problem reading the file.
See Also:
URL

Copyright © 2004 Quest Software Inc..
All rights reserved.