A collection of utilities that are useful when performing I/O operations.
All public-facing code is documented with Javadoc and (mostly) tested with JUnit.
HumanReadableSizecan be used to convert sizes in bytes to one of the following human-readable formats:- Decimal (SI): kB, MB, GB, TB, GB, PB, EB
- Binary: KiB, MiB, GiB, TiB, GiB, PiB, EiB
IOConstantscontains the following constants:IOConstants#UNIX_DIRECTORY_SEPARATOR('/')IOConstants#WINDOWS_DIRECTORY_SEPARATOR('\\')IOConstants#UNIX_LINE_SEPARATOR("\n")IOConstants#WINDOWS_LINE_SEPARATOR("\r\n")IOConstants#LINE_SEPARATOR(equivalent toSystem#lineSeparator())
NIOUtilscontains a collection of utility methods for filesystem manipulation using Java NIO, includingNIOUtils#list(Path),NIOUtils#copyDirectory(Path, Path)andNIOUtils#matchGlob(Path, String).PathUtilscontains a collection of utility methods for manipulating paths, includingPathUtils#getFileName(Path),PathUtils#getCommonAncestor(Path, Path)andPathUtils#withUnixDirectorySeparators(Path). No methods in this class access the filesystem.ZipFileis a very basic representation of a zip file. The main method in this class is theZipFile#getEntry(String)method, which returns aPathwhich represents a zip file entry.Paths returned by this method can be operated on normally like any otherPath.