Revision 5988 org.gvsig.raster.multifile/trunk/org.gvsig.raster.multifile/org.gvsig.raster.multifile.io/src/main/java/org/gvsig/raster/multifile/io/MultiFileProvider.java
MultiFileProvider.java | ||
---|---|---|
102 | 102 |
private static final Logger logger = LoggerFactory.getLogger(MultiFileProvider.class); |
103 | 103 |
protected static String[] formatList = null; |
104 | 104 |
|
105 |
/** |
|
106 |
* |
|
107 |
*/ |
|
105 | 108 |
public static void register() { |
106 | 109 |
DataManagerProviderServices dataman = (DataManagerProviderServices) DALLocator.getDataManager(); |
107 | 110 |
registerFormats(); |
... | ... | |
132 | 135 |
MultiFileProvider.class); |
133 | 136 |
} |
134 | 137 |
|
138 |
/** |
|
139 |
* |
|
140 |
*/ |
|
135 | 141 |
public MultiFileProvider() { |
136 | 142 |
} |
137 | 143 |
|
138 | 144 |
/** |
139 | 145 |
* Opens the dataset. |
146 |
* @param params |
|
140 | 147 |
* @param proj Projection |
141 | 148 |
* @param fName File name |
142 | 149 |
* @throws NotSupportedExtensionException |
150 |
* @throws OpenException |
|
143 | 151 |
* @deprecated use {@link #MultiFileProvider(URI)}, this constructor will be removed in gvSIG 2.5 |
144 | 152 |
*/ |
145 | 153 |
public MultiFileProvider(String params) throws NotSupportedExtensionException, OpenException { |
... | ... | |
164 | 172 |
|
165 | 173 |
/** |
166 | 174 |
* Opens the dataset. |
175 |
* @param uri |
|
167 | 176 |
* @param proj Projection |
168 | 177 |
* @param fName File name |
169 | 178 |
* @throws NotSupportedExtensionException |
179 |
* @throws OpenException |
|
170 | 180 |
*/ |
171 | 181 |
public MultiFileProvider(URI uri) throws NotSupportedExtensionException, OpenException { |
172 | 182 |
super(uri); |
... | ... | |
180 | 190 |
init(p, null); |
181 | 191 |
} |
182 | 192 |
|
193 |
/** |
|
194 |
* @param params |
|
195 |
* @param storeServices |
|
196 |
* @throws NotSupportedExtensionException |
|
197 |
* @throws OpenException |
|
198 |
*/ |
|
183 | 199 |
public MultiFileProvider(MultiFileDataParametersImpl params, |
184 | 200 |
DataStoreProviderServices storeServices) throws NotSupportedExtensionException, OpenException { |
185 | 201 |
super(params, storeServices, ToolsLocator.getDynObjectManager() |
... | ... | |
191 | 207 |
|
192 | 208 |
/** |
193 | 209 |
* Build file references |
210 |
* @param params |
|
211 |
* @param storeServices |
|
194 | 212 |
* @param proj Projection |
195 | 213 |
* @param param Load parameters |
196 | 214 |
* @throws NotSupportedExtensionException |
215 |
* @throws OpenException |
|
197 | 216 |
*/ |
198 | 217 |
public void init(MultiFileDataParameters params, |
199 | 218 |
DataStoreProviderServices storeServices) throws NotSupportedExtensionException, OpenException { |
... | ... | |
353 | 372 |
return true; |
354 | 373 |
} |
355 | 374 |
|
375 |
/** |
|
376 |
* @return MultiFileDataParameters |
|
377 |
*/ |
|
356 | 378 |
public MultiFileDataParameters getParameters() { |
357 | 379 |
try { |
358 | 380 |
return (MultiFileDataParameters)parameters; |
... | ... | |
790 | 812 |
return prov.getURIOfFirstProvider(); |
791 | 813 |
} |
792 | 814 |
|
815 |
/** |
|
816 |
* @param file |
|
817 |
* @throws InvalidSourceException |
|
818 |
*/ |
|
793 | 819 |
public void addFile(String file) throws InvalidSourceException { |
794 | 820 |
ProviderServices provServ = RasterLocator.getManager().getProviderServices(); |
795 | 821 |
DataManagerProviderServices dataManager = (DataManagerProviderServices)DALLocator.getDataManager(); |
Also available in: Unified diff