Class PayloadProcessorProvider.PayloadProcessor

  • Enclosing class:
    PayloadProcessorProvider

    public abstract static class PayloadProcessorProvider.PayloadProcessor
    extends Object
    Processes the given payload. One should call payloadLength() to get the length of the processed payload.
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Constructor Detail

      • PayloadProcessor

        public PayloadProcessor()
    • Method Detail

      • processPayload

        public abstract byte[] processPayload​(byte[] payload,
                                              int start,
                                              int length)
                                       throws IOException
        Process the incoming payload and returns the resulting byte[]. Note that a new array might be allocated if the given array is not big enough. The length of the new payload data can be obtained via payloadLength().
        Throws:
        IOException