Class SerializablePlaceholderResolverStrategy

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

    public class SerializablePlaceholderResolverStrategy
    extends java.lang.Object
    implements org.kie.api.marshalling.ObjectMarshallingStrategy
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.lang.Object object)  
      static int byteArrayToInt​(byte[] b)  
      org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()  
      int getIndex()  
      static byte[] intToByteArray​(int value)  
      byte[] marshal​(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, java.io.ObjectOutputStream os, java.lang.Object object)  
      java.lang.Object read​(java.io.ObjectInputStream os)  
      void setIndex​(int index)  
      java.lang.String toString()  
      java.lang.Object unmarshal​(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, java.io.ObjectInputStream is, byte[] object, java.lang.ClassLoader classloader)  
      void write​(java.io.ObjectOutputStream os, java.lang.Object object)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.kie.api.marshalling.ObjectMarshallingStrategy

        getName
    • Constructor Detail

      • SerializablePlaceholderResolverStrategy

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

      • getIndex

        public int getIndex()
      • setIndex

        public void setIndex​(int index)
      • read

        public java.lang.Object read​(java.io.ObjectInputStream os)
                              throws java.io.IOException,
                                     java.lang.ClassNotFoundException
        Specified by:
        read in interface org.kie.api.marshalling.ObjectMarshallingStrategy
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • write

        public void write​(java.io.ObjectOutputStream os,
                          java.lang.Object object)
                   throws java.io.IOException
        Specified by:
        write in interface org.kie.api.marshalling.ObjectMarshallingStrategy
        Throws:
        java.io.IOException
      • accept

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

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

        public java.lang.Object unmarshal​(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
                                          java.io.ObjectInputStream is,
                                          byte[] object,
                                          java.lang.ClassLoader classloader)
                                   throws java.io.IOException,
                                          java.lang.ClassNotFoundException
        Specified by:
        unmarshal in interface org.kie.api.marshalling.ObjectMarshallingStrategy
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • createContext

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • intToByteArray

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

        public static int byteArrayToInt​(byte[] b)