JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart.data
Class JCDataInterpreter

java.lang.Object
  |
  +--com.klg.jclass.chart.data.JCDataInterpreter
Direct Known Subclasses:
JCDefaultDataInterpreter, JCXMLDataInterpreter

public abstract class JCDataInterpreter
extends Object

The base interpreter class for any data source that relies on input from some reader. Subclasses that are implemented will interpret for specific data formats.


Field Summary
protected  com.klg.jclass.chart.data.BaseDataSource baseDS
           
 
Constructor Summary
JCDataInterpreter()
          Default no-argument constructor.
JCDataInterpreter(com.klg.jclass.chart.data.BaseDataSource bds)
          This constructor creates an instance of a data interpreter and associates it with a data source.
 
Method Summary
protected abstract  void ctor(Reader r)
          Abstract method to be overridden by specific interpreter implementations.
 void setBaseDataSource(com.klg.jclass.chart.data.BaseDataSource bds)
          This interpreter should be associated with a data source that will eventually be populated with interpreted data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseDS

protected com.klg.jclass.chart.data.BaseDataSource baseDS
Constructor Detail

JCDataInterpreter

public JCDataInterpreter(com.klg.jclass.chart.data.BaseDataSource bds)
This constructor creates an instance of a data interpreter and associates it with a data source. It does not yet do any interpreting.

Parameters:
bds - the data source to eventually be populated with the interpreted data

JCDataInterpreter

public JCDataInterpreter()
Default no-argument constructor.

Method Detail

setBaseDataSource

public void setBaseDataSource(com.klg.jclass.chart.data.BaseDataSource bds)
This interpreter should be associated with a data source that will eventually be populated with interpreted data.

Parameters:
bds - the data source to eventually be populated with the interpreted data

ctor

protected abstract void ctor(Reader r)
                      throws IOException
Abstract method to be overridden by specific interpreter implementations.

Parses the specified input stream and populates the previously set data source. Called by the other ctor() method, and is also used for String input where you can't have an input stream.

Parameters:
r - the Reader object used to read data
Throws:
IOException

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