Package net.pl3x.map.core.util
Class FileUtil
java.lang.Object
net.pl3x.map.core.util.FileUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidatomicMove(Path source, Path target) static voidcreateDirs(Path dirPath) static voiddeleteDirectory(Path dir) static voidextractDir(String sourceDir, Path outDir, boolean replace) static voidextractFile(Class<?> clazz, String filename, Path outDir, boolean replace) static Pathstatic Pathstatic Pathstatic Stringstatic voidreadGzip(Path file, ByteBuffer buffer) static Collection<Point> regionPathsToPoints(World world, @Nullable Collection<Path> paths, boolean ignoreTimestamp) static voidstatic voidstatic Pathstatic void
-
Constructor Details
-
FileUtil
public FileUtil()
-
-
Method Details
-
getTilesDir
-
getWebDir
-
extractFile
-
extractDir
-
writeJson
-
saveGzip
- Throws:
IOException
-
saveGzip
- Throws:
IOException
-
readGzip
- Throws:
IOException
-
readGzip
- Throws:
IOException
-
tmp
-
atomicMove
- Throws:
IOException
-
mkDirs
- Throws:
IOException
-
createDirs
-
deleteDirectory
- Throws:
IOException
-
regionPathsToPoints
public static Collection<Point> regionPathsToPoints(World world, @Nullable Collection<Path> paths, boolean ignoreTimestamp)
-