public final class TemporaryFileInstaller extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
install(File target,
boolean reuse)
Installs contents into the target file.
|
static TemporaryFileInstaller |
newInstance(InputStream contents,
boolean executable)
Creates a new instance.
|
public static TemporaryFileInstaller newInstance(InputStream contents, boolean executable) throws IOException
contents - the file contentsexecutable - true to install as an executable file, otherwise falseIOException - if failed to load contentspublic boolean install(File target, boolean reuse) throws IOException
target - the target filereuse - true to reuse installed file, otherwise falsetrue if target file is successfully installed,
or false if the file is already installedIOException - if error occurred while installing the target fileCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.