|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.bastille.util.Paths
public final class Paths
A utility class to manipulate paths.
Method Summary | |
---|---|
static String |
normalize(String path)
Filters and normalizes the value in the path informations. |
static String |
path(String from,
String to)
Computes the path from a path to another. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String normalize(String path)
path
- The path to normalize.
public static String path(String from, String to)
/ to / => . /a to /a => . /a to /b => ../b /a/a/../c to /a => ../../a / to /b => b / to /b/c => b/c
from
- The path to start fromto
- The path to arrive at
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |