JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart.data
Class JCFileDataSource

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.JCFileDataSource
All Implemented Interfaces:
ChartDataManageable, ChartDataManager, ChartDataModel, HoleValueChartDataModel, com.klg.jclass.chart.ImageMapChartDataModel, LabelledChartDataModel, Serializable

public class JCFileDataSource
extends JCInputStreamDataSource

Loads data from a file.

For details on the acceptable data formats, please refer to JCDefaultDataInterpreter and JCXMLDataInterpreter.

See Also:
JCDefaultDataInterpreter, JCXMLDataInterpreter, 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
JCFileDataSource(File f)
          Creates a file data source from the specified File object using the default Interpreter class.
JCFileDataSource(File f, com.klg.jclass.chart.data.JCDataInterpreter ipr)
          Creates a file data source from the specified File object using the specified Interpreter class.
JCFileDataSource(File f, com.klg.jclass.chart.data.JCDataInterpreter ipr, String charsetName)
          Creates a file data source based on the given charset from the specified File object using the specified Interpreter class.
JCFileDataSource(String fname)
          Creates a file data source from the specified file name using the default interpreter class.
JCFileDataSource(String fname, com.klg.jclass.chart.data.JCDataInterpreter ipr)
          Creates a file data source from the specified file name using the specified Interpreter class.
JCFileDataSource(String fname, com.klg.jclass.chart.data.JCDataInterpreter ipr, String charsetName)
          Creates a file data source using the given charset from the specified file name using the specified Interpreter class.
 
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

JCFileDataSource

public JCFileDataSource(String fname)
                 throws FileNotFoundException,
                        IOException
Creates a file data source from the specified file name using the default interpreter class.

Parameters:
fname - the name of the file to be used
Throws:
FileNotFoundException - A FileNotFoundException will be thrown if the file cannot be found.
IOException - A IOException will be thrown if a different i/o problem is encountered.

JCFileDataSource

public JCFileDataSource(String fname,
                        com.klg.jclass.chart.data.JCDataInterpreter ipr)
                 throws FileNotFoundException,
                        IOException
Creates a file data source from the specified file name using the specified Interpreter class.

Parameters:
fname - the name of the file to be used
ipr - Interpreter class to use to interpret the file
Throws:
FileNotFoundException - A FileNotFoundException will be thrown if the file cannot be found.
IOException - A IOException will be thrown if a different i/o problem is encountered.

JCFileDataSource

public JCFileDataSource(String fname,
                        com.klg.jclass.chart.data.JCDataInterpreter ipr,
                        String charsetName)
                 throws FileNotFoundException,
                        IOException
Creates a file data source using the given charset from the specified file name using the specified Interpreter class.

Parameters:
fname - the name of the file to be used
ipr - Interpreter class to use to interpret the file
charsetName - The name of a supported charset
Throws:
FileNotFoundException - A FileNotFoundException will be thrown if the file cannot be found.
IOException - A IOException will be thrown if a different i/o problem is encountered.

JCFileDataSource

public JCFileDataSource(File f)
                 throws FileNotFoundException,
                        IOException
Creates a file data source from the specified File object using the default Interpreter class.

Parameters:
f - a File object representing the file to be opened
Throws:
FileNotFoundException - A FileNotFoundException will be thrown if the file cannot be found.
IOException - A IOException will be thrown if a different i/o problem is encountered.
See Also:
File

JCFileDataSource

public JCFileDataSource(File f,
                        com.klg.jclass.chart.data.JCDataInterpreter ipr)
                 throws FileNotFoundException,
                        IOException
Creates a file data source from the specified File object using the specified Interpreter class.

Parameters:
f - a File object representing the file to be opened
ipr - Interpreter class to use to interpret the file
Throws:
FileNotFoundException - A FileNotFoundException will be thrown if the file cannot be found.
IOException - A IOException will be thrown if a different i/o problem is encountered.
See Also:
File

JCFileDataSource

public JCFileDataSource(File f,
                        com.klg.jclass.chart.data.JCDataInterpreter ipr,
                        String charsetName)
                 throws FileNotFoundException,
                        IOException
Creates a file data source based on the given charset from the specified File object using the specified Interpreter class.

Parameters:
f - a File object representing the file to be opened
ipr - Interpreter class to use to interpret the file
charsetName - The name of a supported charset
Throws:
FileNotFoundException - A FileNotFoundException will be thrown if the file cannot be found.
IOException - A IOException will be thrown if a different i/o problem is encountered.
See Also:
File

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