Package docsite.util
Class ResourceUtil
java.lang.Object
docsite.util.ResourceUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyExternalFileWithAnotherName
(Path path, Path outputFolder, String newName) static void
copyFolder
(Path siteFolder, Path outputFolder) static void
copyResource
(String resource, Path outputFolder) static void
copyResourceFolder
(String folderName, Path outputFolder) static void
deleteDirectory
(Path path) static boolean
existsResource
(String resource) static boolean
existsSource
(Path baseDir, String source) getResourceFiles
(String path) static InputStream
static String
read
(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
-