[Gvsig_english] How to get a DataSource reference from DataSourceFactory

Olivier Ertz olivier.ertz at heig-vd.ch
Thu Dec 7 12:27:29 CET 2006


Dear gvSIG hackers,
How do I get a DataSource reference from the DataSourceFactory after
having added a new FileDataSource ?
Here is a code block to explain what I do :

// load another data source
String dsName = LayerFactory.getDataSourceFactory()
		.addFileDataSource("Bna Alphanumeric 
Driver","D:/tmp/VS-dis_Pop18501990.tab");

Is there a method that can return a reference to the DataSource I've 
just added (I've only a name, so ...) ?
Thanx for your help.

Olivier.




-------------- next part --------------
A non-text attachment was scrubbed...
Name: olivier.ertz.vcf
Type: text/x-vcard
Size: 240 bytes
Desc: not available
Url : http://runas.cap.gva.es/pipermail/gvsig_internacional/attachments/20061207/3737f138/olivier.ertz.vcf


More information about the Gvsig_internacional mailing list