Class KieModuleCacheHelper

java.lang.Object
org.drools.serialization.protobuf.kie.KieModuleCacheHelper

public class KieModuleCacheHelper extends Object
  • Constructor Details

    • KieModuleCacheHelper

      public KieModuleCacheHelper()
  • Method Details

    • writeToStreamWithHeader

      public static void writeToStreamWithHeader(OutputStream stream, com.google.protobuf.Message payload) throws IOException
      Throws:
      IOException
    • readFromStreamWithHeaderPreloaded

      public static KieModuleCache.Header readFromStreamWithHeaderPreloaded(InputStream stream, com.google.protobuf.ExtensionRegistry registry) throws IOException, ClassNotFoundException
      Throws:
      IOException
      ClassNotFoundException
    • buildRegistry

      public static com.google.protobuf.ExtensionRegistry buildRegistry()
    • intToByteArray

      public static final byte[] intToByteArray(int value)
    • byteArrayToInt

      public static final int byteArrayToInt(byte[] b)
    • longToByteArray

      public static final byte[] longToByteArray(long value)
    • byteArrayToLong

      public static final long byteArrayToLong(byte[] b)