Package com.semedy.reasoner.utils
Class ConversionUtils
java.lang.Object
com.semedy.reasoner.utils.ConversionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final int
bytesToInt
(byte[] b) static final int
bytesToInt
(byte[] b, int offset) static final int
bytesToInt1
(byte[] b) static final long
bytesToLong
(byte[] bytes) static final long
bytesToLong
(byte[] bytes, int offset) static long[]
bytesToLongs
(byte[] b) static final void
bytesToLongs
(byte[] b, int[] toCopyOut, long[] lArray) static final void
bytesToLongs
(byte[] bytes, int offsetbyte, int limitbytes, long[] out, int offsetlong) static final void
bytesToLongs
(byte[] b, long[] lArray) static final void
bytesToLongs
(byte[] b, long[] lArray, int targetoffset, int len) static final int
byteToInt
(byte b) static String
static final String
static final String
static String
static final String
static String
fromRDFType
(String type) static void
intsToBytes
(int[] l, byte[] bArray) static final void
intToBytes
(int v, byte[] out) static final void
intToBytes
(int v, byte[] out, int targetoffset) static final boolean
isToEncode
(String s) static byte[]
longsToBytes
(long[] l) static void
longsToBytes
(long[] l, byte[] bArray) static final void
longsToBytes
(long[] l, int offset, byte[] bArray, int len) static byte[]
longsToBytes
(long[] l, int offset, int len) static final void
longsToBytes
(long[] v, int offsetlong, int limitlong, byte[] out, int offsetbyte) static void
longsToBytes
(TupleBuffer l, byte[] bArray) static byte[]
longsToBytes
(TupleBuffer l, int len) static byte[]
longsToBytes
(TupleBuffer l, int offset, int len) static final byte[]
longToBytes
(long v) static final void
longToBytes
(long v, byte[] out) static final void
longToBytes
(long v, byte[] out, int targetoffset) static String
static String
static String
static String
toRDFValue
(Object value)
-
Constructor Details
-
ConversionUtils
public ConversionUtils()
-
-
Method Details
-
stripOff
-
stripOn
-
encodeString
-
isToEncode
-
doubleDecodeString
-
decodeString
-
longToBytes
public static final void longToBytes(long v, byte[] out) -
longToBytes
public static final byte[] longToBytes(long v) -
longToBytes
public static final void longToBytes(long v, byte[] out, int targetoffset) -
intToBytes
public static final void intToBytes(int v, byte[] out) -
intToBytes
public static final void intToBytes(int v, byte[] out, int targetoffset) -
longsToBytes
public static final void longsToBytes(long[] v, int offsetlong, int limitlong, byte[] out, int offsetbyte) -
bytesToLong
public static final long bytesToLong(byte[] bytes) -
bytesToLong
public static final long bytesToLong(byte[] bytes, int offset) -
bytesToInt
public static final int bytesToInt(byte[] b, int offset) -
byteToInt
public static final int byteToInt(byte b) -
bytesToInt
public static final int bytesToInt(byte[] b) -
bytesToInt1
public static final int bytesToInt1(byte[] b) -
bytesToLongs
public static final void bytesToLongs(byte[] bytes, int offsetbyte, int limitbytes, long[] out, int offsetlong) -
bytesToLongs
public static final void bytesToLongs(byte[] b, long[] lArray, int targetoffset, int len) -
bytesToLongs
public static final void bytesToLongs(byte[] b, long[] lArray) -
bytesToLongs
public static final void bytesToLongs(byte[] b, int[] toCopyOut, long[] lArray) -
longsToBytes
public static byte[] longsToBytes(long[] l) -
longsToBytes
public static byte[] longsToBytes(long[] l, int offset, int len) -
longsToBytes
-
longsToBytes
-
longsToBytes
public static final void longsToBytes(long[] l, int offset, byte[] bArray, int len) -
longsToBytes
public static void longsToBytes(long[] l, byte[] bArray) -
longsToBytes
-
intsToBytes
public static void intsToBytes(int[] l, byte[] bArray) -
bytesToLongs
public static long[] bytesToLongs(byte[] b) -
encodeFileName
-
decodeFileName
-
toRDFValue
-
toRDFType
-
fromRDFType
-