| Constructor and Description |
|---|
PathUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getRelative(String basedir,
File file)
Given a basedir and a child file, return the relative path to the child.
|
static String |
getRelative(String basedir,
String child)
Given a basedir and a child file, return the relative path to the child.
|
static String |
toUrl(File file) |
static String |
toUrl(String path) |
public PathUtil()
public static String getRelative(String basedir, File file)
basedir - the basedir.file - the file to get the relative path for.File.separator character)public static String getRelative(String basedir, String child)
basedir - the basedir.child - the child path (can be a full path)File.separator character)Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.