JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table.data
Class JCFileDataSource

java.lang.Object
  |
  +--com.klg.jclass.table.data.AbstractDataSource
        |
        +--com.klg.jclass.table.data.AbstractVectorDataSource
              |
              +--com.klg.jclass.table.data.JCVectorDataSource
                    |
                    +--com.klg.jclass.table.data.JCInputStreamDataSource
                          |
                          +--com.klg.jclass.table.data.JCFileDataSource
All Implemented Interfaces:
JCTableDataModel, Serializable, TableDataModel
Direct Known Subclasses:
JCEditableFileDataSource

public class JCFileDataSource
extends JCInputStreamDataSource

Creates an JCInputStreamDataSource from a file.

See Also:
JCInputStreamDataSource, Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.table.data.JCInputStreamDataSource
customParser, dataFormat
 
Fields inherited from class com.klg.jclass.table.data.JCVectorDataSource
cells, column_labels, columns, is_moving, row_labels, rows
 
Fields inherited from class com.klg.jclass.table.data.AbstractDataSource
listeners
 
Constructor Summary
JCFileDataSource(File f)
          Loads data from a java.io.File instance into JClass LiveTable.
JCFileDataSource(File f, int newFormat)
          Loads data from a java.io.File instance into JClass LiveTable.
JCFileDataSource(File f, com.klg.jclass.table.data.JCFileFormatParser prs)
          Loads data from a java.io.File instance into JClass LiveTable using a custom data parser.
JCFileDataSource(String fname)
          Loads data from a named file into JClass LiveTable.
JCFileDataSource(String fname, int newFormat)
          Loads data from a named file into LiveTable.
JCFileDataSource(String fname, com.klg.jclass.table.data.JCFileFormatParser prs)
          Loads data from a named file into LiveTable using a custom data parser.
 
Methods inherited from class com.klg.jclass.table.data.JCInputStreamDataSource
detectFileFormat, getCustomParser, getDataFormat, read, readFromStream, setCustomParser, setDataFormat
 
Methods inherited from class com.klg.jclass.table.data.JCVectorDataSource
addColumn, addColumn, addRow, addRow, clearCells, deleteColumns, deleteColumns, deleteRows, deleteRows, getCells, getColumnLabels, getLabelValue, getNumColumns, getNumRows, getRowLabels, getTableColumnLabel, getTableDataItem, getTableRowLabel, isCell, isColumnLabel, isLabel, isRowLabel, isValidCell, isValidLabel, moveColumns, moveColumns, moveRows, moveRows, setCell, setCells, setCells, setColumnLabel, setColumnLabels, setColumnLabels, setDataChanged, setLabelValue, setNumColumns, setNumRows, setRowLabel, setRowLabels, setRowLabels
 
Methods inherited from class com.klg.jclass.table.data.AbstractVectorDataSource
createVector, createVector, createVector, createVector, createVector, removeElementsAt, setElementAt, strip
 
Methods inherited from class com.klg.jclass.table.data.AbstractDataSource
addTableDataListener, dispose, fireColumnChanged, fireColumnLabelChanged, fireColumnsAdded, fireColumnsDeleted, fireColumnsMoved, fireDataReset, fireNumColumnsChanged, fireNumRowsChanged, fireRowChanged, fireRowDeleted, fireRowLabelChanged, fireRowsAdded, fireRowsMoved, fireTableDataEvent, fireValueChanged, hasListeners, removeTableDataListener
 
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
Loads data from a named file into JClass LiveTable.

Parameters:
fname - the name of the file to be used
Throws:
FileNotFoundException - Thrown if the file isn't there.
IOException - Thrown if some other sort of i/o problem is encountered.

JCFileDataSource

public JCFileDataSource(String fname,
                        int newFormat)
                 throws FileNotFoundException,
                        IOException
Loads data from a named file into LiveTable.

Parameters:
fname - the name of the file to be used
newFormat - data format of the file; one of STANDARD or CSV
Throws:
FileNotFoundException - Thrown if the file isn't there.
IOException - Thrown if some other sort of i/o problem is encountered.

JCFileDataSource

public JCFileDataSource(String fname,
                        com.klg.jclass.table.data.JCFileFormatParser prs)
                 throws FileNotFoundException,
                        IOException
Loads data from a named file into LiveTable using a custom data parser.

Parameters:
fname - the name of the file to be used
prs - custom data parser used to parse data from the file
Throws:
FileNotFoundException - Thrown if the file isn't there.
IOException - Thrown if some other sort of i/o problem is encountered.

JCFileDataSource

public JCFileDataSource(File f)
                 throws FileNotFoundException,
                        IOException
Loads data from a java.io.File instance into JClass LiveTable.

Parameters:
f - a File object representing the file to be opened
Throws:
FileNotFoundException - Thrown if the file isn't there.
IOException - Thrown if some other sort of i/o problem is encountered.
See Also:
File

JCFileDataSource

public JCFileDataSource(File f,
                        int newFormat)
                 throws FileNotFoundException,
                        IOException
Loads data from a java.io.File instance into JClass LiveTable.

Parameters:
f - a File object representing the file to be opened
newFormat - data format of the file; one of STANDARD or CSV
Throws:
FileNotFoundException - Thrown if the file isn't there.
IOException - Thrown if some other sort of i/o problem is encountered.
See Also:
File

JCFileDataSource

public JCFileDataSource(File f,
                        com.klg.jclass.table.data.JCFileFormatParser prs)
                 throws FileNotFoundException,
                        IOException
Loads data from a java.io.File instance into JClass LiveTable using a custom data parser.

Parameters:
f - a File object representing the file to be opened
prs - custom data parser used to parse data from the file
Throws:
FileNotFoundException - Thrown if the file isn't there.
IOException - Thrown if some other sort of i/o problem is encountered.
See Also:
File

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