|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.chart.ChartDataSupport | +--com.klg.jclass.chart.data.BaseDataSource | +--com.klg.jclass.chart.data.JCInputStreamDataSource
This class is the base for any data source that relies on input
from some stream, which includes files, urls, large Strings, etc.
Data is interpreted according by a interpreter classes that subclasses from
JCDataInterpreter
.
Field Summary | |
protected String |
charsetName
The name of a supported charset |
protected com.klg.jclass.chart.data.JCDataInterpreter |
interpreter
Interpreter being used to interpret data. |
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 | |
protected |
JCInputStreamDataSource()
This constructor sets up a JCInputStreamDataSource class to use
the default interpreter. |
|
JCInputStreamDataSource(InputStream i)
This constructor takes the InputStream , reads in all the
appropriate data and interprets it according to the default interpreter
class. |
|
JCInputStreamDataSource(InputStream i,
com.klg.jclass.chart.data.JCDataInterpreter p)
This constructor takes the InputStream , reads in all the
appropriate data, and interprets it according to the specified interpreter
class. |
|
JCInputStreamDataSource(InputStream i,
com.klg.jclass.chart.data.JCDataInterpreter p,
String charsetName)
This constructor takes the InputStream , reads in all the
appropriate data based on the given charset, and interprets it according to
the specified interpreter class. |
protected |
JCInputStreamDataSource(com.klg.jclass.chart.data.JCDataInterpreter p)
This constructor sets up a JCInputStreamDataSource class to use
the specified interpreter. |
protected |
JCInputStreamDataSource(com.klg.jclass.chart.data.JCDataInterpreter p,
String charsetName)
This constructor sets up a JCInputStreamDataSource class to use
the specified interpreter and charset. |
Method Summary | |
protected void |
ctor(InputStream i)
Parses the specified input stream and populates this data source. |
protected void |
ctor(Reader r)
Version of ctor() that takes a Reader . |
String |
getCharsetName()
Gets the name of the charset |
com.klg.jclass.chart.data.JCDataInterpreter |
getInterpreter()
Gets the interpreter |
void |
setCharsetName(String charsetName)
Sets the name of the charset |
void |
setInterpreter(com.klg.jclass.chart.data.JCDataInterpreter interpreter)
Sets the interpreter |
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 |
Field Detail |
protected com.klg.jclass.chart.data.JCDataInterpreter interpreter
protected String charsetName
Constructor Detail |
public JCInputStreamDataSource(InputStream i) throws IOException
InputStream
, reads in all the
appropriate data and interprets it according to the default interpreter
class.
i
- InputStream
object used to read the data
IOException
- An IOException
will be thrown if there
are any errors while reading in the data.public JCInputStreamDataSource(InputStream i, com.klg.jclass.chart.data.JCDataInterpreter p) throws IOException
InputStream
, reads in all the
appropriate data, and interprets it according to the specified interpreter
class.
i
- InputStream
object used to read the datap
- Interpreter
used to make sense of the data
IOException
- An IOException
will be thrown if there
are any errors while reading in the data.public JCInputStreamDataSource(InputStream i, com.klg.jclass.chart.data.JCDataInterpreter p, String charsetName) throws IOException
InputStream
, reads in all the
appropriate data based on the given charset, and interprets it according to
the specified interpreter class.
i
- InputStream
object used to read the datap
- Interpreter
used to make sense of the datacharsetName
- The name of a supported charset
IOException
- An IOException
will be thrown if there
are any errors while reading in the data.protected JCInputStreamDataSource() throws IOException
JCInputStreamDataSource
class to use
the default interpreter. It does not yet read or interpret any data.
IOException
- An IOException
will be thrown if there are
any errors while reading in the data.protected JCInputStreamDataSource(com.klg.jclass.chart.data.JCDataInterpreter p) throws IOException
JCInputStreamDataSource
class to use
the specified interpreter. It does not yet read or interpret any data.
p
- the data interpreter to be used
IOException
- An IOException
will be thrown if there are
any errors while reading in the data.protected JCInputStreamDataSource(com.klg.jclass.chart.data.JCDataInterpreter p, String charsetName) throws IOException
JCInputStreamDataSource
class to use
the specified interpreter and charset. It does not yet read or interpret any
data.
p
- the data interpreter to be usedcharsetName
- The name of a supported charset
IOException
- An IOException
will be thrown if there are
any errors while reading in the data.Method Detail |
public com.klg.jclass.chart.data.JCDataInterpreter getInterpreter()
public void setInterpreter(com.klg.jclass.chart.data.JCDataInterpreter interpreter)
interpreter
- The new interpreterpublic String getCharsetName()
public void setCharsetName(String charsetName)
charsetName
- The name of a supported charsetprotected void ctor(InputStream i) throws IOException
super()
(for example,
AppletDataSource
).
i
- the InputStream
object to read data from
IOException
- An IOException
will be thrown if there are
any errors while reading in the data.protected void ctor(Reader r) throws IOException
ctor()
that takes a Reader
.
Called by the other ctor()
and for String input where you can't have an input stream. If no
interpreter has been set, it determines the appropriate interpreter
to use from the data in the reader.
r
- the Reader
object to read data from
IOException
- An IOException
will be thrown if there are
any errors while reading in the data.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |