Revision 2888

View differences:

org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/provider/AbstractRasterProvider.java
26 26
import java.awt.geom.NoninvertibleTransformException;
27 27
import java.awt.geom.Point2D;
28 28
import java.io.File;
29
import java.net.URI;
30
import java.net.URISyntaxException;
29 31
import java.security.NoSuchAlgorithmException;
30 32
import java.util.Collection;
31 33
import java.util.Date;
32 34
import java.util.Iterator;
33 35
import java.util.List;
36
import java.util.logging.Level;
37
import org.apache.commons.io.FilenameUtils;
34 38

  
35 39
import org.cresques.cts.IProjection;
36 40
import org.gvsig.compat.net.ICancellable;
......
199 203
		super(null, null, null);
200 204
	}
201 205
	
202
	public String getFullName() {
203
		return getName();
204
	}
205
	
206
	public String getProviderName() {
207
		return getName();
208
	}
209
	
210 206
	public String[] getFormatList() {
211 207
		return null;
212 208
	}
......
907 903
		uri = n;
908 904
	}
909 905

  
906
        public String getName() {
907
            String pathName = null;
908
            try {
909
                URI x = new URI(this.uri);
910
                pathName = x.getPath();
911
                return FilenameUtils.getBaseName(pathName);
912
            } catch (Throwable th1) {
913
                try {
914
                    return FilenameUtils.getBaseName(pathName);
915
                } catch(Throwable th2) {
916
                    return uri;
917
                }
918
            }
919
	}
920
	
921
	public String getFullName() {
922
		return uri;
923
	}
924
        
910 925
	/**
911 926
	 * Gets the size of the file if exists in Bytes
912 927
	 * @return
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/store/DefaultRasterStore.java
130 130
	
131 131
	public String getName() {
132 132
		if(provider != null)
133
			return provider.getURI();
133
			return provider.getName();
134 134
		return null;
135 135
	}
136 136
	

Also available in: Unified diff