Revision 35993
trunk/libraries/libIverUtiles/src/org/gvsig/tools/file/PathGenerator.java | ||
---|---|---|
35 | 35 |
* @return the path of file. |
36 | 36 |
*/ |
37 | 37 |
public String getURLPath(String targetPath) { |
38 |
if (targetPath == null) { |
|
39 |
return null; |
|
40 |
} |
|
38 | 41 |
try { |
39 | 42 |
URL url=new URL(targetPath); |
40 | 43 |
File fileIn = new File(url.toURI()); |
... | ... | |
158 | 161 |
* @return |
159 | 162 |
*/ |
160 | 163 |
public String getAbsoluteURLPath(String path){ |
164 |
if (path == null) { |
|
165 |
return null; |
|
166 |
} |
|
161 | 167 |
try { |
162 | 168 |
URL url=new URL(path); |
163 | 169 |
File fileIn=new File(url.toURI()); |
Also available in: Unified diff