Package brut.util
Class BrutIO
java.lang.Object
brut.util.BrutIO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CRC32calculateCrc(InputStream input) static voidcopy(File inputFile, ZipOutputStream outputFile) static voidcopy(ZipFile inputFile, ZipOutputStream outputFile, ZipEntry entry) static voidcopyAndClose(InputStream in, OutputStream out) static StringnormalizePath(String path) static longrecursiveModifiedTime(File file) static longrecursiveModifiedTime(File[] files) static StringsanitizeUnknownFile(File directory, String entry)
-
Constructor Details
-
BrutIO
public BrutIO()
-
-
Method Details
-
copyAndClose
- Throws:
IOException
-
recursiveModifiedTime
-
recursiveModifiedTime
-
calculateCrc
- Throws:
IOException
-
sanitizeUnknownFile
public static String sanitizeUnknownFile(File directory, String entry) throws IOException, brut.common.BrutException - Throws:
IOExceptionbrut.common.BrutException
-
normalizePath
-
copy
- Throws:
IOException
-
copy
public static void copy(ZipFile inputFile, ZipOutputStream outputFile, ZipEntry entry) throws IOException - Throws:
IOException
-