Class ConversionUtils

java.lang.Object
com.semedy.reasoner.utils.ConversionUtils

public class ConversionUtils extends Object
  • Constructor Details

    • ConversionUtils

      public ConversionUtils()
  • Method Details

    • stripOff

      public static String stripOff(String s)
    • stripOn

      public static String stripOn(String s)
    • encodeString

      public static final String encodeString(String s)
    • isToEncode

      public static final boolean isToEncode(String s)
    • doubleDecodeString

      public static final String doubleDecodeString(String s)
    • decodeString

      public static final String decodeString(String s)
    • 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

      public static byte[] longsToBytes(TupleBuffer l, int offset, int len)
    • longsToBytes

      public static byte[] longsToBytes(TupleBuffer l, int len)
    • longsToBytes

      public static final void longsToBytes(long[] l, int offset, byte[] bArray, int len)
    • longsToBytes

      public static void longsToBytes(long[] l, byte[] bArray)
    • longsToBytes

      public static void longsToBytes(TupleBuffer l, byte[] bArray)
    • intsToBytes

      public static void intsToBytes(int[] l, byte[] bArray)
    • bytesToLongs

      public static long[] bytesToLongs(byte[] b)
    • encodeFileName

      public static String encodeFileName(String s)
    • decodeFileName

      public static String decodeFileName(String s)
    • toRDFValue

      public static String toRDFValue(Object value)
    • toRDFType

      public static String toRDFType(String type, String iri)
    • fromRDFType

      public static String fromRDFType(String type)