Class DokanyUtils
java.lang.Object
org.cryptomator.frontend.dokany.internal.DokanyUtils
Utilities to do various operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends EnumInteger>
TenumFromInt(int value, T[] enumValues) TODO: can be refactored to the EnumIntegerSet Classstatic <T extends Enum<T> & EnumInteger>
EnumIntegerSet<T>enumSetFromInt(int value, T[] allEnumValues) Will return an TODO: can be refactored to the EnumIntegerSet Classstatic com.sun.jna.platform.win32.WinBase.FILETIMEstatic com.sun.jna.platform.win32.WinBase.FILETIMEgetTime(long time) static com.sun.jna.platform.win32.WinBase.FILETIMEstatic StringtrimStrToSize(String str, int len)
-
Method Details
-
trimStrToSize
-
getTime
-
getTime
public static com.sun.jna.platform.win32.WinBase.FILETIME getTime(long time) -
getCurrentTime
public static com.sun.jna.platform.win32.WinBase.FILETIME getCurrentTime() -
enumSetFromInt
public static <T extends Enum<T> & EnumInteger> EnumIntegerSet<T> enumSetFromInt(int value, T[] allEnumValues) Will return an TODO: can be refactored to the EnumIntegerSet Class- Parameters:
value-allEnumValues-- Returns:
-
enumFromInt
TODO: can be refactored to the EnumIntegerSet Class- Type Parameters:
T-- Parameters:
value-enumValues-- Returns:
-