public class FileResources extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
FileResources(String resourceDirectoryRoot) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyResourceTo(String sourceResource,
File targetDirectory) |
protected FileOutputStream |
createOutputStream(File destinationFile) |
String |
findTargetFileFrom(String sourceResource) |
String |
findTargetSubdirectoryFrom(String sourceResource) |
static FileResources |
from(String resourceDirectoryRoot) |
static long |
getDefaultRetryTimeout() |
String |
stripLeadingSeparatorFrom(String path) |
protected FileResources(String resourceDirectoryRoot)
public static FileResources from(String resourceDirectoryRoot)
public final void copyResourceTo(String sourceResource, File targetDirectory) throws IOException
IOExceptionpublic static long getDefaultRetryTimeout()
protected FileOutputStream createOutputStream(File destinationFile) throws FileNotFoundException
FileNotFoundExceptionCopyright © 2022. All rights reserved.