Class FileSystemResourceHandler
Namespace: Aspose.Html.Saving.ResourceHandlers
Assembly: Aspose.HTML.dll (25.2.0)
This class is an implementation of the Aspose.Html.Saving.ResourceHandlers.ResourceHandler class designed to save resources to the local file system.
[ComVisible(true)]
public class FileSystemResourceHandler : ResourceHandler
Inheritance
object ← ResourceHandler ← FileSystemResourceHandler
Inherited Members
ResourceHandler.HandleResource(Resource, ResourceHandlingContext), ResourceHandler.HandleResourceReference(Resource, ResourceHandlingContext), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
FileSystemResourceHandler(Url)
Initializes a new instance of the Aspose.Html.Saving.ResourceHandlers.FileSystemResourceHandler class.
public FileSystemResourceHandler(Url outputUrl)
Parameters
outputUrl
Url
A URL indicating where the resources will be saved.
FileSystemResourceHandler(string)
Initializes a new instance of the Aspose.Html.Saving.ResourceHandlers.FileSystemResourceHandler class.
public FileSystemResourceHandler(string outputPath)
Parameters
outputPath
string
A path indicating where the resources will be saved.
Methods
HandleResource(Resource, ResourceHandlingContext)
This method is responsible for handling the resource. In it you can save the Aspose.Html.Saving.Resource to the stream or embed it into the parent resource.
public override void HandleResource(Resource resource, ResourceHandlingContext context)
Parameters
resource
Resource
The Aspose.Html.Saving.Resource which will be handled.
context
ResourceHandlingContext
Resource handling context.