com.groupdocs.editor.htmlcss.resources.textual

Class CssText

    • Constructor Detail

      • CssText

        public CssText(String name,
               InputStream binaryContent,
               Charset originalEncoding)

        Creates new CSS resource from specified byte stream and encoding

        Parameters:
        name -
        binaryContent -
        originalEncoding -
      • CssText

        public CssText(String name,
               String textualContent,
               Charset originalEncoding)

        Creates new CSS resource from specified textual content with encoding

        Parameters:
        name -
        textualContent -
        originalEncoding -
    • Method Detail

      • dispose

        public void dispose()

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

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable
      • equals

        public boolean equals(IHtmlResource other)

        Checks this instance with specified on equality.

        Parameters:
        other -
        Returns:
      • getEncoding

        public Charset getEncoding()

        Returns encoding of this CSS resource. Usually returns UTF-8.

        Specified by:
        getEncoding in interface ITextResource
      • getFilenameWithExtension

        public String getFilenameWithExtension()

        Returns correct filename of this CSS resource, which consists of name and extension

        Specified by:
        getFilenameWithExtension in interface IHtmlResource
      • getName

        public String getName()

        Returns name of this CSS resource without file extension

        Specified by:
        getName in interface IHtmlResource
      • getTextContent

        public String getTextContent()

        Returns content of this CSS resource as a standard string

        Specified by:
        getTextContent in interface IHtmlResource
      • isDisposed

        public boolean isDisposed()

        Determines whether this CSS resource is disposed or not

        Specified by:
        isDisposed in interface IAuxDisposable
      • save

        public void save(String fullPathToFile)

        Saves this CSS resource to the specified file

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