Class EntityReferenceSaxHandler

    • Constructor Detail

      • EntityReferenceSaxHandler

        public EntityReferenceSaxHandler​(ConfigurationProvider configurationProvider,
                                         UnitDescriptor unitDescriptor)
        Constructor.
        Parameters:
        configurationProvider - The access object for the configuration files, not null.
        unitDescriptor - The description of the generation unit, not null.
        Throws:
        NullPointerException - if an argument is null.
    • Method Detail

      • getResource

        public String getResource()
        Returns the parsed resource path.
        Returns:
        the the parsed resource path, not null if a matching snippet was processed.
      • getSystemId

        public String getSystemId()
      • isFinished

        public boolean isFinished()
        Returns whether this handler has finished parsing.
        Returns:
        true if this handler is finished, false otherwise.
      • readResource

        public byte[] readResource()
                            throws ConfigurationException
        Reads the resource defined in the parsed XML .
        Returns:
        the content of the resource, not null.
        Throws:
        ConfigurationException - if an error occurs while reading the resource.