|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
See:
Description
| Interface Summary | |
|---|---|
| DataParser | Interface for an object that can parse data from a stream, and pass it to a DataSink |
| DataSink | Interface for objects that can received events containing data parsed from some source |
| LineParser | Interface for an object that can parse a line of data, returning the field values as strings |
| Class Summary | |
|---|---|
| AbstractDataParser | Abstract base class for data parsers. |
| CsvLineParser | A line parser for CSV data. |
| ParseUtils | Static helpers for parsing values etc. |
| TimeDataParser | Implementation of a DataParser for time-based data, i.e. |
| ValueDataParser | A parser that uses a numeric value for the X axis. |
| WhiteSpaceLineParser | A LineParser that splits the string based on white space |
| Exception Summary | |
|---|---|
| InvalidDataException | Thrown to indicate that the data in a line is not valid |
This package contains classes for parsing tabular data from streams.
To use this package directly, you would:
LineParser of the appropriate type for the
format of your data, i.e either a CsvLineParser or a
WhiteSpaceLineParser. This is responsible
for splitting each line of your data into separate fields
DataSink implementation, which will receive
an event for each line parsed. This is typically one of the ChartBuilder classes in the
net.sf.clichart.data package
DataParser of the appropriate type for the format
of the fields, passing it the LineParser and DataSink you just created.
TimeDataParser (used when
the X axis of your chart will be a date, time or date/time) and
ValueDataParser
(used when the X axis is a simple value, or when there is 'no' X value).
DataParser.parse(java.io.Reader)
method on your DataParser.
net.sf.clichart.main package for examples of using these classes.
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||