Class KieModuleCacheHelper
- java.lang.Object
-
- org.drools.serialization.protobuf.kie.KieModuleCacheHelper
-
public class KieModuleCacheHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description KieModuleCacheHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.protobuf.ExtensionRegistrybuildRegistry()static intbyteArrayToInt(byte[] b)static longbyteArrayToLong(byte[] b)static byte[]intToByteArray(int value)static byte[]longToByteArray(long value)static KieModuleCache.HeaderreadFromStreamWithHeaderPreloaded(InputStream stream, com.google.protobuf.ExtensionRegistry registry)static voidwriteToStreamWithHeader(OutputStream stream, com.google.protobuf.Message payload)
-
-
-
Method Detail
-
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)
-
-