Package pro.gravit.launcher.hasher
Class HashedDir
java.lang.Object
pro.gravit.launcher.serialize.stream.StreamObject
pro.gravit.launcher.hasher.HashedEntry
pro.gravit.launcher.hasher.HashedDir
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic interfaceNested classes/interfaces inherited from class pro.gravit.launcher.hasher.HashedEntry
HashedEntry.TypeNested classes/interfaces inherited from class pro.gravit.launcher.serialize.stream.StreamObject
StreamObject.Adapter<O extends StreamObject> -
Field Summary
Fields inherited from class pro.gravit.launcher.hasher.HashedEntry
flag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompare(HashedDir other, FileNameMatcher matcher)diff(HashedDir other, FileNameMatcher matcher)findRecursive(String path)getType()booleanisEmpty()map()voidvoidvoidsideCompare(HashedDir other, FileNameMatcher matcher, Deque<String> path, boolean mismatchList)longsize()voidwalk(CharSequence separator, HashedDir.WalkCallback callback)voidMethods inherited from class pro.gravit.launcher.serialize.stream.StreamObject
write
-
Constructor Details
-
HashedDir
public HashedDir() -
HashedDir
- Throws:
IOException
-
HashedDir
public HashedDir(Path dir, FileNameMatcher matcher, boolean allowSymlinks, boolean digest) throws IOException- Throws:
IOException
-
-
Method Details
-
diff
-
compare
-
remove
-
removeR
-
moveTo
-
findRecursive
-
getEntry
-
getType
- Specified by:
getTypein classHashedEntry
-
isEmpty
public boolean isEmpty() -
map
-
resolve
-
sideCompare
public HashedDir sideCompare(HashedDir other, FileNameMatcher matcher, Deque<String> path, boolean mismatchList) -
size
public long size()- Specified by:
sizein classHashedEntry
-
write
- Specified by:
writein classStreamObject- Throws:
IOException
-
walk
- Throws:
IOException
-