Class SerializablePlaceholderResolverStrategy

  • All Implemented Interfaces:
    org.kie.api.marshalling.ObjectMarshallingStrategy

    public class SerializablePlaceholderResolverStrategy
    extends Object
    implements org.kie.api.marshalling.ObjectMarshallingStrategy
    • Constructor Detail

      • SerializablePlaceholderResolverStrategy

        public SerializablePlaceholderResolverStrategy​(org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor)
    • Method Detail

      • getIndex

        public int getIndex()
      • setIndex

        public void setIndex​(int index)
      • accept

        public boolean accept​(Object object)
        Specified by:
        accept in interface org.kie.api.marshalling.ObjectMarshallingStrategy
      • marshal

        public byte[] marshal​(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
                              ObjectOutputStream os,
                              Object object)
                       throws IOException
        Specified by:
        marshal in interface org.kie.api.marshalling.ObjectMarshallingStrategy
        Throws:
        IOException
      • createContext

        public org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
        Specified by:
        createContext in interface org.kie.api.marshalling.ObjectMarshallingStrategy
      • intToByteArray

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

        public static int byteArrayToInt​(byte[] b)