| java.lang.Object org.openlaszlo.iv.flash.util.DataSourceHelper
DataSourceHelper | public class DataSourceHelper (Code) | | Helper class for reading any kind of datasources.
author: Dmitry Skavish See Also: XMLDataSource See Also: DataSource |
Method Summary | |
public static Object | getContextData(String surl, FlashFile flashFile) Return context data.
Reads datasource from given url, detects it's type: xml or text
and creates either xml Node or array of strings.
Datasources can be specified by url or inline. | public static Object | readContextData(String surl, FlashFile flashFile) Reads datasource from given url, detects it's type: xml or text
and creates either LineReader (text) or else (xml)
Datasources can be specified by url or inline. |
getContextData | public static Object getContextData(String surl, FlashFile flashFile) throws IVException, IOException(Code) | | Return context data.
Reads datasource from given url, detects it's type: xml or text
and creates either xml Node or array of strings.
Datasources can be specified by url or inline. If url starts
with '#' then this is inline datasource which is completely given
in the utl string.
Parameters: surl - url or inline datasource Parameters: flashFile - current flash file from which this datasource is requested either Node or String[][] exception: IVException - exception: IOException - |
readContextData | public static Object readContextData(String surl, FlashFile flashFile) throws IVException, IOException(Code) | | Reads datasource from given url, detects it's type: xml or text
and creates either LineReader (text) or else (xml)
Datasources can be specified by url or inline. If url starts
with '#' then this is inline datasource which is completely given
in the url string.
Parameters: surl - url or inline datasource Parameters: flashFile - current flash file from which this datasource is requested either LineReader (plain datasource) or IVUrl exception: IOException - exception: IVException - |
|
|