Package com.ticxo.modelengine.api.utils
Class TFile
java.lang.Object
com.ticxo.modelengine.api.utils.TFile
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilecopyResource(org.bukkit.plugin.java.JavaPlugin plugin, File file, String path) static FilecopyResource(org.bukkit.plugin.java.JavaPlugin plugin, File origin, String resourceOrigin, String path) static FilecopyResource(org.bukkit.plugin.java.JavaPlugin plugin, File origin, String resourceOrigin, String srcPath, String destPath) static FilecopyResourceTemplated(org.bukkit.plugin.java.JavaPlugin plugin, File origin, String resourceOrigin, String srcPath, String destPath, Map<String, String> replacements) static FilecreateDirectory(File parent, String... path) static FilecreateFile(File parent, String... path) static FilecreateFile(File parent, String scope, ResourceLocation location, String extension) static FilecreateFileOrEmpty(File parent, String... path) static StringcreatePath(String... path) static booleanstatic booleanisExtension(String path, String extensions) static BufferedImagerawToImage(String data) static voidrecreateFile(File file) static StringremoveExtension(String path) static BufferedImagestatic voidzipFile(File fileToZip, String fileName, ZipOutputStream zipOut)
-
Field Details
-
SEP
-
-
Constructor Details
-
TFile
public TFile()
-
-
Method Details
-
copyResource
-
copyResource
-
copyResource
-
copyResourceTemplated
-
createPath
-
createDirectory
-
createFile
-
createFileOrEmpty
-
createFile
public static File createFile(File parent, String scope, ResourceLocation location, String extension) -
recreateFile
-
toImage
-
rawToImage
-
removeExtension
-
isExtension
-
zipFile
public static void zipFile(File fileToZip, String fileName, ZipOutputStream zipOut) throws IOException - Throws:
IOException
-
delete
-