com.groupdocs.viewer.results

Class Resource

    • Constructor Detail

      • Resource

        public Resource(String fileName,
                        boolean nested)

        Creates new instance of Resource class.

        Parameters:
        fileName - Resource file name.
        nested - Indicates whether resource resides inside another resource, e.g. font resource that resides in CSS or SVG resource.
        Throws:
        IllegalArgumentException - Thrown when fileName is null or empty.
    • Method Detail

      • getFileName

        public final String getFileName()
        The resource file name.
        Returns:
        The resource file name.
      • isNested

        public final boolean isNested()
        Indicates whether resource resides inside another resource, e.g. font resource that resides in CSS or SVG resource.
        Returns:
        whether resource resides inside another resource, e.g. font resource that resides in CSS or SVG resource.
      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        A string that represents the current object.