Interface ResourceEventProducer

  • All Superinterfaces:
    EventProducer

    public interface ResourceEventProducer
    extends EventProducer
    Event producer interface for resource events (missing images, fonts etc.).
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  ResourceEventProducer.Provider
      Provider class for the event producer.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void cannotDeleteTempFile​(java.lang.Object source, java.io.File tempFile)
      Cannot delete a temporary file.
      void catalogResolverNotCreated​(java.lang.Object source, java.lang.String message)
      Catalog Resolver not created, due to InstantiationException or IllegalAccessException
      void catalogResolverNotFound​(java.lang.Object source)
      Catalog Resolver not found along the class path
      void foreignXMLNoHandler​(java.lang.Object source, org.w3c.dom.Document doc, java.lang.String namespaceURI)
      No handler for foreign XML content.
      void foreignXMLProcessingError​(java.lang.Object source, org.w3c.dom.Document doc, java.lang.String namespaceURI, java.lang.Exception e)
      Error processing foreign XML content.
      void hyphenationNotFound​(java.lang.Object source, java.lang.String uri)
      Hyphenation not found.
      void ifoNoIntrinsicSize​(java.lang.Object source, org.xml.sax.Locator loc)
      Intrinsic size of fo:instream-foreign-object could not be determined.
      void imageError​(java.lang.Object source, java.lang.String uri, org.apache.xmlgraphics.image.loader.ImageException e, org.xml.sax.Locator loc)
      Error while processing image.
      void imageIOError​(java.lang.Object source, java.lang.String uri, java.io.IOException ioe, org.xml.sax.Locator loc)
      I/O error while loading an image.
      void imageNotFound​(java.lang.Object source, java.lang.String uri, java.io.FileNotFoundException fnfe, org.xml.sax.Locator loc)
      Image not found.
      void imageWarning​(java.lang.Object source, java.lang.String message)
      Warning in an image.
      void imageWritingError​(java.lang.Object source, java.lang.Exception e)
      Error while writing/serializing an image to an output format.
      void uriError​(java.lang.Object source, java.lang.String uri, java.lang.Exception e, org.xml.sax.Locator loc)
      Error while handling a URI.
    • Method Detail

      • imageNotFound

        void imageNotFound​(java.lang.Object source,
                           java.lang.String uri,
                           java.io.FileNotFoundException fnfe,
                           org.xml.sax.Locator loc)
        Image not found.
        Parameters:
        source - the event source
        uri - the original URI of the image
        fnfe - the "file not found" exception
        loc - the location of the error or null
      • imageError

        void imageError​(java.lang.Object source,
                        java.lang.String uri,
                        org.apache.xmlgraphics.image.loader.ImageException e,
                        org.xml.sax.Locator loc)
        Error while processing image.
        Parameters:
        source - the event source
        uri - the original URI of the image
        e - the image exception
        loc - the location of the error or null
      • imageIOError

        void imageIOError​(java.lang.Object source,
                          java.lang.String uri,
                          java.io.IOException ioe,
                          org.xml.sax.Locator loc)
        I/O error while loading an image.
        Parameters:
        source - the event source
        uri - the original URI of the image
        ioe - the I/O exception
        loc - the location of the error or null
      • imageWritingError

        void imageWritingError​(java.lang.Object source,
                               java.lang.Exception e)
        Error while writing/serializing an image to an output format.
        Parameters:
        source - the event source
        e - the original exception
      • uriError

        void uriError​(java.lang.Object source,
                      java.lang.String uri,
                      java.lang.Exception e,
                      org.xml.sax.Locator loc)
        Error while handling a URI.
        Parameters:
        source - the event source
        uri - the original URI of the image
        e - the original exception
        loc - the location of the error or null
      • ifoNoIntrinsicSize

        void ifoNoIntrinsicSize​(java.lang.Object source,
                                org.xml.sax.Locator loc)
        Intrinsic size of fo:instream-foreign-object could not be determined.
        Parameters:
        source - the event source
        loc - the location of the error or null
      • foreignXMLProcessingError

        void foreignXMLProcessingError​(java.lang.Object source,
                                       org.w3c.dom.Document doc,
                                       java.lang.String namespaceURI,
                                       java.lang.Exception e)
        Error processing foreign XML content.
        Parameters:
        source - the event source
        doc - the foreign XML
        namespaceURI - the namespace URI of the foreign XML
        e - the original exception
      • foreignXMLNoHandler

        void foreignXMLNoHandler​(java.lang.Object source,
                                 org.w3c.dom.Document doc,
                                 java.lang.String namespaceURI)
        No handler for foreign XML content.
        Parameters:
        source - the event source
        doc - the foreign XML
        namespaceURI - the namespace URI of the foreign XML
      • cannotDeleteTempFile

        void cannotDeleteTempFile​(java.lang.Object source,
                                  java.io.File tempFile)
        Cannot delete a temporary file.
        Parameters:
        source - the event source
        tempFile - the temporary file
      • catalogResolverNotFound

        void catalogResolverNotFound​(java.lang.Object source)
        Catalog Resolver not found along the class path
        Parameters:
        source - the event source
      • catalogResolverNotCreated

        void catalogResolverNotCreated​(java.lang.Object source,
                                       java.lang.String message)
        Catalog Resolver not created, due to InstantiationException or IllegalAccessException
        Parameters:
        source - the event source
        message - the exception message
      • imageWarning

        void imageWarning​(java.lang.Object source,
                          java.lang.String message)
        Warning in an image.
        Parameters:
        source - the event source
        message - warning
      • hyphenationNotFound

        void hyphenationNotFound​(java.lang.Object source,
                                 java.lang.String uri)
        Hyphenation not found.
        Parameters:
        source - the event source
        uri - the original URI of the hyphenation