public interface IHtmlResource extends IAuxDisposable
Represents one instance of the unknown HTML resource (raster or vector image, stylesheet, font, text resource (CSS, XML) etc.)
Disposed
Modifier and Type | Method and Description |
---|---|
InputStream |
getByteContent()
Content of the HTML resource in a form of a byte stream
|
String |
getFilenameWithExtension()
Correct filename of the specified resource with appropriate file
extension
|
String |
getName()
Name of the HTML resource
|
String |
getTextContent()
Content of the HTML resource in a form of a base64-encoded text string
for binary resources or a simple text for textual resources
|
IResourceType |
getType()
Type of the HTML resource
|
void |
save(String fullPathToFile)
Saves a current resource to the specified file
|
isDisposed
dispose
InputStream getByteContent()
Content of the HTML resource in a form of a byte stream
String getFilenameWithExtension()
Correct filename of the specified resource with appropriate file extension
String getName()
Name of the HTML resource
String getTextContent()
Content of the HTML resource in a form of a base64-encoded text string for binary resources or a simple text for textual resources
IResourceType getType()
Type of the HTML resource
void save(String fullPathToFile)
Saves a current resource to the specified file
fullPathToFile
- Full path to the file, which will be created or
rewritten with the content of a current resource