public class ResourceLoadingArgs
extends java.lang.Object
IResourceLoadingCallback.resourceLoading(com.aspose.words.ResourceLoadingArgs) method.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOriginalUri()
Original URI of the resource as specified in imported document.
|
int |
getResourceType()
Type of resource.
|
java.lang.String |
getUri()
URI of the resource which is used for downloading if
IResourceLoadingCallback.resourceLoading(com.aspose.words.ResourceLoadingArgs) returns ResourceLoadingAction.DEFAULT. |
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. |
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. |
public int getResourceType()
int value. The returned value is one of ResourceType constants.public java.lang.String getUri()
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.
String value.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.
value - The corresponding String value.public java.lang.String getOriginalUri()
String value.public void setData(byte[] data)
IResourceLoadingCallback.resourceLoading(com.aspose.words.ResourceLoadingArgs) returns ResourceLoadingAction.USER_PROVIDED.