Revision 166 org.gvsig.educa.thematicmap/trunk/org.gvsig.educa.thematicmap/org.gvsig.educa.thematicmap.lib/org.gvsig.educa.thematicmap.lib.impl/src/main/java/org/gvsig/educa/thematicmap/impl/util/FilenameUtils.java
FilenameUtils.java | ||
---|---|---|
23 | 23 |
|
24 | 24 |
/** |
25 | 25 |
* <p> |
26 |
* File name management utilities. Extends the provides by <i>apache-common-IO</i> |
|
26 |
* File name management utilities. Extends the provides by |
|
27 |
* <i>apache-common-IO</i> |
|
27 | 28 |
* </p> |
28 |
* |
|
29 |
*
|
|
29 | 30 |
* @author gvSIG Team |
30 | 31 |
* @version $Id$ |
31 |
* |
|
32 |
*
|
|
32 | 33 |
*/ |
33 | 34 |
public abstract class FilenameUtils extends org.apache.commons.io.FilenameUtils { |
34 | 35 |
|
... | ... | |
37 | 38 |
* Return <code>path</code> as relative from <code>basePath</code> only if |
38 | 39 |
* <code>basePath</code> is an ancestor of <code>path</code>: |
39 | 40 |
* </p> |
40 |
* |
|
41 |
*
|
|
41 | 42 |
* <pre> |
42 | 43 |
* path basePath returns |
43 | 44 |
* ---------- ------------- ---------- |
... | ... | |
45 | 46 |
* /home/user/x.txt /home/user/ x.txt |
46 | 47 |
* ~/x.txt /home/ user/x.t |
47 | 48 |
* /tmp/x.txt /home/ /tmp/x.txt |
48 |
* C:/foo/bar/xx.txt C: foo/bar/xx.txt
|
|
49 |
* C:/foo/bar/xx.txt C:/foo/ bar/xx.txt
|
|
50 |
* C:/foo/bar/xx.txt C:/foo/bar/ xx.txt
|
|
49 |
* C:\foo\bar\xx.txt C: foo\bar\xx.txt
|
|
50 |
* C:\foo\bar\xx.txt C:\foo\ bar\xx.txt
|
|
51 |
* C:\foo\bar\xx.txt C:\foo\bar\ xx.txt
|
|
51 | 52 |
* </pre> |
52 |
* |
|
53 |
*
|
|
53 | 54 |
* @param path |
54 | 55 |
* @param basePath |
55 | 56 |
* @return |
... | ... | |
77 | 78 |
* Return <code>path</code> as relative from <code>basePath</code> only if |
78 | 79 |
* <code>basePath</code> is an ancestor of <code>path</code>: |
79 | 80 |
* </p> |
80 |
* |
|
81 |
*
|
|
81 | 82 |
* <pre> |
82 | 83 |
* path returns |
83 | 84 |
* ---------- ------------- |
... | ... | |
86 | 87 |
* /tmp/x.txt tmp/x.txt |
87 | 88 |
* C:/foo/bar/xx.txt foo/bar/xx.txt |
88 | 89 |
* </pre> |
89 |
* |
|
90 |
*
|
|
90 | 91 |
* @param path |
91 | 92 |
* @return |
92 | 93 |
*/ |
Also available in: Unified diff