Interface FilterStateListener

  • All Known Implementing Classes:
    XapThumbnailsProcessor, XMPProcessor

    public interface FilterStateListener
    Notification listener that gets invoked when a filter detects start and end markers.
    • Method Detail

      • started

        OutputStream started​(Filter filter)
        Invoked when the filter detects the start of a section it understands.
        Parameters:
        filter - filter
        Returns:
        output stream, if the listener wants to have the consecutive bytes automatically written to some location or null
      • ended

        void ended​(Filter filter,
                   OutputStream out)
        Invoked when the filter detects the end of a section.
        Parameters:
        filter - filter
        out - output stream returned from started(Filter) or null