public final class CssText extends Object implements ITextResource
Represents one textual resource, which is a CSS. Does not support generating a HtmlCss.Css.CssOm class from this type.
Modifier and Type | Field and Description |
---|---|
com.groupdocs.editor.events.ProcessEvents<com.groupdocs.editor.events.ProcessEventHandler> |
Disposed
Event, which occurs when this CSS resource is disposed
|
Constructor and Description |
---|
CssText(String name,
InputStream binaryContent,
Charset originalEncoding)
Creates new CSS resource from specified byte stream and encoding
|
CssText(String name,
String textualContent,
Charset originalEncoding)
Creates new CSS resource from specified textual content with encoding
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes this CSS resource, disposing its content and making most methods and properties non-working
|
boolean |
equals(IHtmlResource other)
Checks this instance with specified on equality.
|
boolean |
equals(Object obj)
Gets the type of the current instance.
|
InputStream |
getByteContent()
Returns content of this CSS resource as byte stream with original encoding
|
Charset |
getEncoding()
Returns encoding of this CSS resource.
|
String |
getFilenameWithExtension()
Returns correct filename of this CSS resource, which consists of name and extension
|
String |
getName()
Returns name of this CSS resource without file extension
|
String |
getTextContent()
Returns content of this CSS resource as a standard string
|
TextType |
getType()
Returns TextType.Css
|
IResourceType |
getTypeInstance()
Gets the type of the current instance.
|
int |
hashCode()
Gets the type of the current instance.
|
boolean |
isDisposed()
Determines whether this CSS resource is disposed or not
|
void |
save(String fullPathToFile)
Saves this CSS resource to the specified file
|
public final com.groupdocs.editor.events.ProcessEvents<com.groupdocs.editor.events.ProcessEventHandler> Disposed
Event, which occurs when this CSS resource is disposed
public CssText(String name, InputStream binaryContent, Charset originalEncoding)
Creates new CSS resource from specified byte stream and encoding
name
- Name of the CSS resource.binaryContent
- Content of the CSS resource as InputStream.originalEncoding
- Encoding of this CSS resource.public CssText(String name, String textualContent, Charset originalEncoding)
Creates new CSS resource from specified textual content with encoding
name
- Name of the CSS resource.textualContent
- Content of the CSS resource as a standard string.originalEncoding
- Encoding of this CSS resource.public void dispose()
Disposes this CSS resource, disposing its content and making most methods and properties non-working
dispose
in interface com.aspose.ms.System.IDisposable
public boolean equals(IHtmlResource other)
Checks this instance with specified on equality.
public boolean equals(Object obj)
Gets the type of the current instance.
public InputStream getByteContent()
Returns content of this CSS resource as byte stream with original encoding
getByteContent
in interface IHtmlResource
public Charset getEncoding()
Returns encoding of this CSS resource. Usually returns UTF-8.
getEncoding
in interface ITextResource
public String getFilenameWithExtension()
Returns correct filename of this CSS resource, which consists of name and extension
getFilenameWithExtension
in interface IHtmlResource
public String getName()
Returns name of this CSS resource without file extension
getName
in interface IHtmlResource
public String getTextContent()
Returns content of this CSS resource as a standard string
getTextContent
in interface IHtmlResource
public TextType getType()
Returns TextType.Css
getType
in interface IHtmlResource
getType
in interface ITextResource
public IResourceType getTypeInstance()
Gets the type of the current instance.
public int hashCode()
Gets the type of the current instance.
public boolean isDisposed()
Determines whether this CSS resource is disposed or not
isDisposed
in interface IAuxDisposable
public void save(String fullPathToFile)
Saves this CSS resource to the specified file
save
in interface IHtmlResource
fullPathToFile
- Full path to the file, which will be created or rewritedCopyright © 2018. All rights reserved.