com.aspose.words
Class ResourceLoadingArgs

java.lang.Object
    extended by com.aspose.words.ResourceLoadingArgs

public class ResourceLoadingArgs 
extends java.lang.Object

Provides data for the IResourceLoadingCallback.resourceLoading(com.aspose.words.ResourceLoadingArgs) method.

Property Getters/Setters Summary
java.lang.StringgetOriginalUri()
           Original URI of the resource as specified in imported document.
intgetResourceType()
           Type of resource. The value of the property is ResourceType integer constant.
java.lang.StringgetUri()
voidsetUri(java.lang.String value)
          

URI of the resource which is used for downloading if IResourceLoadingCallback.resourceLoading(com.aspose.words.ResourceLoadingArgs) returns ResourceLoadingAction.DEFAULT.

Initially it's set to absolute URI of the resource, but user can redefine it to any value.

 
Method Summary
voidsetData(byte[] data)
           Sets user provided data of the resource which is used if IResourceLoadingCallback.resourceLoading(com.aspose.words.ResourceLoadingArgs) returns ResourceLoadingAction.USER_PROVIDED.
 

Property Getters/Setters Detail

getOriginalUri

public java.lang.String getOriginalUri()
Original URI of the resource as specified in imported document.

getResourceType

public int getResourceType()
Type of resource. The value of the property is ResourceType integer constant.

getUri/setUri

public java.lang.String getUri() / public void setUri(java.lang.String value)

URI of the resource which is used for downloading if IResourceLoadingCallback.resourceLoading(com.aspose.words.ResourceLoadingArgs) returns ResourceLoadingAction.DEFAULT.

Initially it's set to absolute URI of the resource, but user can redefine it to any value.


Method Detail

setData

public void setData(byte[] data)
Sets user provided data of the resource which is used if IResourceLoadingCallback.resourceLoading(com.aspose.words.ResourceLoadingArgs) returns ResourceLoadingAction.USER_PROVIDED.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.