Package docsite.util
Class ResourceUtil
java.lang.Object
docsite.util.ResourceUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyExternalFileWithAnotherName(Path path, Path outputFolder, String newName) static voidcopyFolder(Path siteFolder, Path outputFolder) static voidcopyResource(String resource, Path outputFolder) static voidcopyResourceFolder(String folderName, Path outputFolder) static voiddeleteDirectory(Path path) static booleanexistsResource(String resource) static booleanexistsSource(Path baseDir, String source) getResourceFiles(String path) static InputStreamstatic Stringread(InputStream inputStream)
-
Method Details
-
getResourceFiles
-
copyResourceFolder
- Throws:
IOException
-
existsResource
-
copyResource
- Throws:
IOException
-
copyExternalFileWithAnotherName
public static void copyExternalFileWithAnotherName(Path path, Path outputFolder, String newName) throws IOException - Throws:
IOException
-
read
- Throws:
IOException
-
open
- Throws:
IOException
-
existsSource
-
copyFolder
-
deleteDirectory
-