public class TARDISFileCopier
extends java.lang.Object
Constructor and Description |
---|
TARDISFileCopier(TARDIS plugin) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
copy(java.lang.String filename)
Copies the schematic file to the TARDIS plugin directory if it is not present.
|
static java.io.File |
copy(java.lang.String filepath,
java.io.InputStream in,
boolean overwrite)
Copies the schematic file to the TARDIS plugin directory if it is not present.
|
void |
copyFiles()
Copies files for use by the TARDIS builder classes.
|
public TARDISFileCopier(TARDIS plugin)
public void copyFiles()
public static java.io.File copy(java.lang.String filepath, java.io.InputStream in, boolean overwrite)
filepath
- the path to the file to write toin
- the input file to read fromoverwrite
- whether to overwrite the filepublic java.io.File copy(java.lang.String filename)
filename
- the name of the file to copy