Interface CustomEncodeFilter

  • All Superinterfaces:
    CustomFilter

    public interface CustomEncodeFilter
    extends CustomFilter
    Declares the functionality needed for creating a custom encode filter.
    • Method Detail

      • encode

        OutputStream encode​(OutputStream dstStm,
                            FilterParams filterParams)
                     throws CustomFilterException
        This method returns an output stream which is responsible for encoding all the bytes written to that stream in the future and also write those encoded bytes on the output stream passed here. All the parameters required while encoding are present in filterParams object.
        Parameters:
        dstStm -
        filterParams -
        Returns:
        encoded bytes in an output stream.
        Throws:
        CustomFilterException
      • updateFilterParams

        FilterParams updateFilterParams​(FilterParams fParams)
        Updates the filterParams based on capability of the custom encode filter
        Parameters:
        fParams -
        Returns:
        upadated FilterParams