Package org.xipki.apppackage
Class MyUtil
- java.lang.Object
-
- org.xipki.apppackage.MyUtil
-
public class MyUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description MyUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringbytesToHex(byte[] bytes)static StringhexSha256(byte[] bytes)static booleanisIsPosix()static booleanisNull(CborDecoder decoder)static intreadArrayStart(int expectedArrayLen, CborDecoder decoder)static byte[]readByteString(CborDecoder decoder)static LongreadLong(CborDecoder decoder)static StringreadText(CborDecoder decoder)static List<String>readTextList(CborDecoder decoder)static Set<PosixFilePermission>toPosixFilePermissions(int intPermission)static StringtoUnixPath(String path)static StringtoUnixPath(Path basePath, Path path)
-
-
-
Method Detail
-
isIsPosix
public static boolean isIsPosix()
-
bytesToHex
public static String bytesToHex(byte[] bytes)
-
hexSha256
public static String hexSha256(byte[] bytes)
-
toPosixFilePermissions
public static Set<PosixFilePermission> toPosixFilePermissions(int intPermission)
-
isNull
public static boolean isNull(CborDecoder decoder) throws IOException
- Throws:
IOException
-
readText
public static String readText(CborDecoder decoder) throws IOException
- Throws:
IOException
-
readLong
public static Long readLong(CborDecoder decoder) throws IOException
- Throws:
IOException
-
readByteString
public static byte[] readByteString(CborDecoder decoder) throws IOException
- Throws:
IOException
-
readTextList
public static List<String> readTextList(CborDecoder decoder) throws IOException
- Throws:
IOException
-
readArrayStart
public static int readArrayStart(int expectedArrayLen, CborDecoder decoder) throws IOException- Throws:
IOException
-
-