Package org.xipki.apppackage
Class MyUtil
java.lang.Object
org.xipki.apppackage.MyUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbytesToHex(byte[] bytes) static StringhexSha256(byte[] bytes) static booleanstatic booleanisNull(CborDecoder decoder) static intreadArrayStart(int expectedArrayLen, CborDecoder decoder) static byte[]readByteString(CborDecoder decoder) static LongreadLong(CborDecoder decoder) static StringreadText(CborDecoder decoder) readTextList(CborDecoder decoder) static Set<PosixFilePermission>toPosixFilePermissions(int intPermission) static StringtoUnixPath(String path) static StringtoUnixPath(Path basePath, Path path)
-
Constructor Details
-
MyUtil
public MyUtil()
-
-
Method Details
-
isIsPosix
public static boolean isIsPosix() -
bytesToHex
-
hexSha256
-
toUnixPath
-
toUnixPath
-
toPosixFilePermissions
-
isNull
- Throws:
IOException
-
readText
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readByteString
- Throws:
IOException
-
readTextList
- Throws:
IOException
-
readArrayStart
- Throws:
IOException
-