public class FileUtils
extends java.lang.Object
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
encodeURL(java.lang.String path)
Filter a path name for an URL, replacing spaces characters by their percent encoding equivalent.
|
static boolean |
exists(java.net.URL url) |
static java.net.URL |
getChildURL(java.net.URL parentURL,
java.lang.String path)
Return an URL by its relative path from a parent URL.
|
static java.net.URL |
getParentURL(java.net.URL url)
Return the parent URL of a given URL.
|
public static java.net.URL getChildURL(java.net.URL parentURL,
java.lang.String path)
parentURL - the parent URLpath - the path of the child relative to the parentpublic static java.lang.String encodeURL(java.lang.String path)
path - the pathpublic static java.net.URL getParentURL(java.net.URL url)
url - the URLpublic static boolean exists(java.net.URL url)
Copyright © 2021, 2022, 2025, 2026 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence