|
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.table.data.JCXMLFormatParser
This class takes in a stream of data and parses it under the assumption it is in the defined XML format JClass LiveTable uses. This format is defined in com.klg.jclass.util.xml.JCTableXMLParser.
Field Summary | |
protected com.klg.jclass.table.data.JCVectorDataSource |
dataSource
The data source to populate with the data. |
Constructor Summary | |
JCXMLFormatParser()
|
Method Summary | |
void |
readAndParse(Reader r,
com.klg.jclass.table.data.JCVectorDataSource ds)
Reads and parses data in the defined XML format and places it inside a LiveTable data source. |
void |
setTableData(Vector rowV,
Vector rowLabelV,
Vector colLabelV,
int nrows,
int ncols)
Populates the table with the given data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.table.data.JCVectorDataSource dataSource
Constructor Detail |
public JCXMLFormatParser()
Method Detail |
public void readAndParse(Reader r, com.klg.jclass.table.data.JCVectorDataSource ds) throws IOException
readAndParse
in interface JCFileFormatParser
r
- reader open on an active streamds
- JCVectorDataSource
instance to act as a
container for the data read in from r
IOException
public void setTableData(Vector rowV, Vector rowLabelV, Vector colLabelV, int nrows, int ncols)
JCTablePopulator
interface.
setTableData
in interface JCTablePopulator
rowV
- a vector of vectors, where each inside vector represents
one row in the tablerowLabelV
- a vector containing the row labels for this tablecolLabelV
- a vector containing the column labels for this tablenrows
- the number of rows in this tablencols
- the number of columns in this table
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |