public final class CssText extends TextResourceBase
Represents one CSS textual resource. Does not support generating a HtmlCss.Css.CssOm class from this type.
Disposed
Constructor and Description |
---|
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
|
CssText(String name,
String textualContent,
com.aspose.ms.System.Text.Encoding originalEncoding)
Creates new CSS resource from specified textual content with encoding
|
Modifier and Type | Method and Description |
---|---|
TextType |
getType()
Returns TextType.Css
|
dispose, equals, getByteContent, getByteContentInternal, getEncoding, getEncodingInternal, getFilenameWithExtension, getName, getTextContent, isDisposed, save
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
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 emptypublic CssText(String name, String textualContent, com.aspose.ms.System.Text.Encoding originalEncoding)
Creates new CSS resource from specified textual content with encoding
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
emptyoriginalEncoding
- Original encoding of the resource, cannot be NULL
or emptypublic TextType getType()
Returns TextType.Css
getType
in interface IHtmlResource
getType
in class TextResourceBase
Copyright © 2020. All rights reserved.