com.groupdocs.editor.htmlcss.resources.textual

Class CssText

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable, IAuxDisposable, IHtmlResource


    public final class CssText
    extends TextResourceBase

    Represents one CSS textual resource. Does not support generating a HtmlCss.Css.CssOm class from this type.

    • Constructor Detail

      • CssText

        public CssText(String name,
               com.aspose.ms.System.IO.Stream binaryContent,
               com.aspose.ms.System.Text.Encoding originalEncoding)

        Creates new CSS resource from specified byte stream and encoding

        Parameters:
        name - Mandatory name of the resource, that serves as its unique identifier. Usually is a file name.
        binaryContent - Binary content of a resource as a byte stream. Cannot be NULL, disposed, should be readable and seekable.
        originalEncoding - Original encoding of the resource, cannot be NULL or empty
      • CssText

        public CssText(String name,
               String textualContent,
               com.aspose.ms.System.Text.Encoding originalEncoding)

        Creates new CSS resource from specified textual content with encoding

        Parameters:
        name - Mandatory name of the resource, that serves as its unique identifier. Usually is a file name.
        textualContent - Textual content of the resource, cannot be NULL or empty
        originalEncoding - Original encoding of the resource, cannot be NULL or empty