Class IO
java.lang.Object
com.cleanroommc.gradle.api.util.IO
-
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedInputStreambufferedIn(File file) static voiddownloadWithETag(String url, File dest) static FileInputStreamstatic voidstatic voidnormalizeZip(Path path) Rewrites a ZIP with stable entry order and timestamps.static FileOutputStreamstatic byte[]static BufferedReaderreader(InputStream is, Charset charset) static BufferedReaderstatic <T> Tstatic <T> Tstatic <T> TreadJson(InputStream stream, Class<T> type) static <T> Tstatic <T> Tstatic <T> Tstatic FilerunDir(File projectDir, String version, Environment env, Side side) static Stringstatic Stringstatic Stringstatic booleanstatic booleanstatic byte[]sha256(byte[] data) static voidwriteEntry(ZipOutputStream output, String name, byte[] data) static voidwriteString(Path path, String content) static ZipInputStreamstatic ZipInputStreamstatic ZipOutputStreamstatic ZipOutputStream
-
Method Details
-
readJson
-
readJson
-
readJson
-
readJson
-
readJson
-
readJson
-
sha1
-
sha1
-
sha1
-
sha1Match
-
sha1Match
-
sha256
public static byte[] sha256(byte[] data) -
out
- Throws:
FileNotFoundException
-
in
- Throws:
FileNotFoundException
-
bufferedIn
- Throws:
FileNotFoundException
-
zipOut
- Throws:
FileNotFoundException
-
zipIn
- Throws:
FileNotFoundException
-
zipOut
- Throws:
IOException
-
zipIn
- Throws:
IOException
-
readEntry
- Throws:
IOException
-
writeEntry
- Throws:
IOException
-
writeString
- Throws:
IOException
-
move
- Throws:
IOException
-
normalizeZip
Rewrites a ZIP with stable entry order and timestamps.- Parameters:
path- the archive to rewrite in place
-
reader
- Throws:
IOException
-
reader
-
downloadWithETag
-
runDir
-