public class FileUtils extends Object
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
encodeURL(String path)
Filter a path name for an URL, replacing spaces characters by their percent encoding equivalent.
|
static boolean |
exists(URL url) |
static URL |
getChildURL(URL parentURL,
String path)
Return an URL by its relative path from a parent URL.
|
static URL |
getParentURL(URL url)
Return the parent URL of a given URL.
|
public static URL getChildURL(URL parentURL, String path)
parentURL - the parent URLpath - the path of the child relative to the parentpublic static String encodeURL(String path)
path - the pathpublic static URL getParentURL(URL url)
url - the URLpublic static boolean exists(URL url)
Copyright © 2026. All rights reserved.