JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table.data
Class JCURLDataSource

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.JCURLDataSource
All Implemented Interfaces:
JCTableDataModel, Serializable, TableDataModel

public class JCURLDataSource
extends JCInputStreamDataSource

A simple class that uses a URL to create a data source object.

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
JCURLDataSource(String url)
           
JCURLDataSource(String url, com.klg.jclass.table.data.JCFileFormatParser prs)
           
JCURLDataSource(String host, String file)
           
JCURLDataSource(String host, String file, com.klg.jclass.table.data.JCFileFormatParser prs)
           
JCURLDataSource(String protocol, String host, String file)
           
JCURLDataSource(String protocol, String host, String file, com.klg.jclass.table.data.JCFileFormatParser prs)
           
JCURLDataSource(URL base, String file)
           
JCURLDataSource(URL base, String file, com.klg.jclass.table.data.JCFileFormatParser prs)
           
 
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

JCURLDataSource

public JCURLDataSource(String url)
                throws MalformedURLException,
                       IOException
Parameters:
url - a String representing the location of the data file, for example, http://www.quest.com/data.file
Throws:
MalformedURLException - If the specified URL is not in a valid format.
IOException - If there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String url,
                       com.klg.jclass.table.data.JCFileFormatParser prs)
                throws MalformedURLException,
                       IOException
Parameters:
url - a String representing the location of the data file, for example, http://www.quest.com/data.file
prs - the parser to use to interpret the incoming data
Throws:
MalformedURLException - If the specified URL is not in a valid format.
IOException - If there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String host,
                       String file)
                throws MalformedURLException,
                       IOException
Parameters:
host - the WWW hostname
file - the fully-qualified name of the file on the server
Throws:
MalformedURLException - If the specified URL is not in a valid format.
IOException - If there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String host,
                       String file,
                       com.klg.jclass.table.data.JCFileFormatParser prs)
                throws MalformedURLException,
                       IOException
Parameters:
host - the WWW hostname
file - the fully-qualified name of the file on the server
prs - the parser to use to interpret the incoming data
Throws:
MalformedURLException - If the specified URL is not in a valid format.
IOException - If there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String protocol,
                       String host,
                       String file)
                throws MalformedURLException,
                       IOException
Parameters:
protocol - the protocol to use to access the file (currently only http is supported)
host - the WWW hostname
file - the fully-qualified name of the file on the server
Throws:
MalformedURLException - If the specified URL is not in a valid format.
IOException - If there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(String protocol,
                       String host,
                       String file,
                       com.klg.jclass.table.data.JCFileFormatParser prs)
                throws MalformedURLException,
                       IOException
Parameters:
protocol - the protocol to use to access the file (currently only http is supported)
host - the WWW hostname
file - the fully-qualified name of the file on the server
prs - the parser to use to interpret the incoming data
Throws:
MalformedURLException - If the specified URL is not in a valid format.
IOException - If there is some problem reading the file.

JCURLDataSource

public JCURLDataSource(URL base,
                       String file)
                throws MalformedURLException,
                       IOException
Parameters:
base - a URL object representing the directory in which to find the file
file - the name of the file on the server
Throws:
MalformedURLException - If the specified URL is not in a valid format.
IOException - If there is some problem reading the file.
See Also:
URL

JCURLDataSource

public JCURLDataSource(URL base,
                       String file,
                       com.klg.jclass.table.data.JCFileFormatParser prs)
                throws MalformedURLException,
                       IOException
Parameters:
base - a URL object representing the directory in which to find the file
file - the name of the file on the server
prs - the parser to use to interpret the incoming data
Throws:
MalformedURLException - If the specified URL is not in a valid format.
IOException - If there is some problem reading the file.
See Also:
URL

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