Class FontResourceBase

  • java.lang.Object
    • com.groupdocs.editor.htmlcss.resources.fonts.FontResourceBase
    • Field Summary

      Modifier and Type Field and Description<> Disposed 
    • Constructor Summary

      Constructor and Description
    • Field Detail

      • Disposed

        public final<> Disposed
    • Constructor Detail

      • FontResourceBase

        public FontResourceBase()
    • Method Detail

      • dispose

        public final void dispose()

        Disposes this font resource, disposing its content and making most methods and properties non-working

        Specified by:
        dispose in interface
      • equals

        public final boolean equals(FontResourceBase other)

        Checks this instance with specified font resource on reference equality

        other - Other inheritor of FontResourceBase abstract class
        True if are equal, false if are unequal
      • equals

        public final boolean equals(IHtmlResource other)

        Checks this instance with specified HTML resource on reference equality

        other - Other inheritor of IHtmlResource interface
        True if are equal, false if are unequal
      • getFilenameWithExtension

        public final String getFilenameWithExtension()

        Returns correct filename of this font resource, which consists of name and extension. Theoretically can differ from the name.

        Specified by:
        getFilenameWithExtension in interface IHtmlResource
      • getName

        public final String getName()

        Returns name of this font resource. Usually doesn't contain filename extension and theoretically can differ from filename.

        Specified by:
        getName in interface IHtmlResource
      • getTextContent

        public final String getTextContent()

        Returns content of this font as base64-encoded string. This value is cached after first invoke.

        Specified by:
        getTextContent in interface IHtmlResource
      • getType

        public abstract FontType getType()

        In implementing type should return information about type of specific font resource as an instance of specific FontType type, which encapsulates all type-specific info

        Specified by:
        getType in interface IHtmlResource
      • isDisposed

        public final boolean isDisposed()

        Determines whether this font is disposed or not

        Specified by:
        isDisposed in interface IAuxDisposable
      • save

        public final void save(String fullPathToFile)

        Saves this font to the specified file

        Specified by:
        save in interface IHtmlResource
        fullPathToFile - Full path to the file, which will be created or rewritten