public class ApexFileHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
| Modifier | Constructor and Description |
|---|---|
protected |
ApexFileHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
cleanWhitespaces(String mdx) |
static Path |
createTempPath(String prefix,
String suffix,
boolean deleteOnExit)
Enable creating a tmp path to a not-existing file.
|
static void |
expandJarToDisk(Path jarPath,
Path targetPath) |
static Optional<Path> |
getHoldingJarPath(URI resource) |
static Path |
getResourceAsPath(org.springframework.core.io.Resource resource) |
static URL |
getResourceURL(String path) |
public static Path getResourceAsPath(org.springframework.core.io.Resource resource)
resource - a resource to be made available as a Pathpublic static URL getResourceURL(String path)
path - a path like '/folder/file' in folder in a folder in the classpathpublic static Path createTempPath(String prefix, String suffix, boolean deleteOnExit) throws IOException
IOException@Beta public static void expandJarToDisk(Path jarPath, Path targetPath) throws IOException
IOExceptionpublic static Optional<Path> getHoldingJarPath(URI resource) throws IOException
IOExceptionCopyright © 2014–2017 Pivotal Software, Inc.. All rights reserved.