public final class IOUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TMP_BUFFER_PREFIX_PROPERTY_NAME |
| Modifier and Type | Method and Description |
|---|---|
static File |
createTemporaryBuffer() |
static File |
createTemporaryBuffer(String extension) |
static File |
createTemporaryBuffer(TaskOutput taskOut)
Creates a temp file trying to find the best location based on the task output.
|
static File |
createTemporaryBufferWithName(String filename) |
static File |
createTemporaryFolder() |
static File |
findNewNameThatDoesNotExist(File output) |
static String |
shortenFilename(String name) |
static String |
toSafeFilename(String input) |
static String |
toStrictFilename(String input)
Strips all but characters that are known to be safe: alphanumerics for now.
|
public static final String TMP_BUFFER_PREFIX_PROPERTY_NAME
public static File createTemporaryBuffer(TaskOutput taskOut) throws TaskIOException
taskOut - FileTaskIOExceptionpublic static File createTemporaryBuffer() throws TaskIOException
TaskIOExceptionpublic static File createTemporaryBuffer(String extension) throws TaskIOException
TaskIOExceptionpublic static File createTemporaryBufferWithName(String filename) throws TaskIOException
TaskIOExceptionpublic static File createTemporaryFolder()
public static File findNewNameThatDoesNotExist(File output) throws IOException
IOExceptionpublic static String toSafeFilename(String input)
String where all the variations of whitespace and horizontal whitespace are replace with a standard whitespace, all characters deemed unsafe for a filename
are stripped and the resulting filename is trimmedCopyright © 2021 sejda. All rights reserved.