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 |
createTempFile(String prefix,
String suffix) |
static Path |
createTempPath(String prefix,
String suffix) |
static Path |
createTestPath(String prefix,
String suffix) |
static Path |
createTestPath(String prefix,
String suffix,
boolean deleteOnExit) |
static void |
expandJarToDisk(Path jarPath,
Path targetPath) |
static Optional<Path> |
getHoldingJarPath(URL resource) |
static File |
getResourceFile(String path) |
static Path |
getResourcePath(String path) |
static URL |
getResourceURL(String path) |
@Beta public static Path createTempFile(String prefix, String suffix) throws IOException
IOExceptionpublic static Path createTempPath(String prefix, String suffix) throws IOException
IOExceptionpublic static Path createTestPath(String prefix, String suffix) throws IOException
prefix - suffix - IOExceptionpublic static Path createTestPath(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(URL resource) throws IOException
IOExceptionCopyright © 2014–2017 Pivotal Software, Inc.. All rights reserved.