Class BaseProtoStreamMarshaller

    • Constructor Detail

      • BaseProtoStreamMarshaller

        protected BaseProtoStreamMarshaller()
    • Method Detail

      • getSerializationContext

        protected abstract org.infinispan.protostream.SerializationContext getSerializationContext()
        Subclasses must implement this method in order to provide a way to lookup the SerializationContext
        the SerializationContext instance to use
      • objectFromByteBuffer

        public Object objectFromByteBuffer​(byte[] buf,
                                           int offset,
                                           int length)
                                    throws IOException,
        Description copied from interface: Marshaller
        Unmarshalls an object from a specific portion of a byte array.
        buf - byte array containing the binary representation of an object. Must not be null.
        offset - point in buffer to start reading
        length - number of bytes to consider
        an object
        IOException - if unmarshalling cannot complete due to some I/O error
        ClassNotFoundException - if the class of the object trying to unmarshall is unknown
      • isMarshallable

        public boolean isMarshallable​(Object o)
        Description copied from interface: Marshaller
        A method that checks whether the given object is marshallable as per the rules of this marshaller.
        o - object to verify whether it's marshallable or not
        true if the object is marshallable, otherwise false
      • mediaType

        public MediaType mediaType()
        the MediaType associated with the content produced by the marshaller