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
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.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.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 |
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.fileprs
- 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 hostnamefile
- 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 hostnamefile
- the fully-qualified name of the file on the serverprs
- 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 hostnamefile
- 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 hostnamefile
- the fully-qualified name of the file on the serverprs
- 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 filefile
- 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 filefile
- the name of the file on the serverprs
- 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