MCPcopy Index your code
hub / github.com/FabricMC/Matcher / InputFile

Method InputFile

src/main/java/matcher/type/InputFile.java:16–27  ·  view source on GitHub ↗
(Path path)

Source from the content-addressed store, hash-verified

14
15public class InputFile {
16 InputFile(Path path) {
17 try {
18 this.path = path;
19 this.fileName = getSanitizedFileName(path);
20 this.size = Files.size(path);
21 this.hash = HashType.SHA256.hash(path);
22 this.hashType = HashType.SHA256;
23 this.pathHint = path;
24 } catch (IOException e) {
25 throw new UncheckedIOException(e);
26 }
27 }
28
29 public InputFile(String fileName) {
30 this(fileName, unknownSize, null, null);

Callers

nothing calls this directly

Calls 3

getSanitizedFileNameMethod · 0.95
sizeMethod · 0.80
hashMethod · 0.80

Tested by

no test coverage detected