Class KieModuleCacheHelper
java.lang.Object
org.drools.serialization.protobuf.kie.KieModuleCacheHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.protobuf.ExtensionRegistrystatic final intbyteArrayToInt(byte[] b) static final longbyteArrayToLong(byte[] b) static final byte[]intToByteArray(int value) static final byte[]longToByteArray(long value) static KieModuleCache.HeaderreadFromStreamWithHeaderPreloaded(InputStream stream, com.google.protobuf.ExtensionRegistry registry) static voidwriteToStreamWithHeader(OutputStream stream, com.google.protobuf.Message payload)
-
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:
IOExceptionClassNotFoundException
-
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)
-