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 void
atomicMove
(Path source, Path target) static void
createDirs
(Path dirPath) static void
deleteDirectory
(Path dir) static void
extractDir
(String sourceDir, Path outDir, boolean replace) static void
extractFile
(Class<?> clazz, String filename, Path outDir, boolean replace) static Path
static Path
static Path
static String
static void
readGzip
(Path file, ByteBuffer buffer) static Collection
<Point> regionPathsToPoints
(World world, @Nullable Collection<Path> paths, boolean ignoreTimestamp) static void
static void
static Path
static 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)
-