public class ResourceCallbackArgs
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
ResourceCallbackArgs()
Creates a new instance of the ResourceCallbackArgs class.
|
ResourceCallbackArgs(long handle)
Creates a new instance of the ResourceCallbackArgs class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases all resources used by this ResourceCallbackArgs.
|
java.lang.String |
computeSha256()
Computes the SHA-256 of the external resource's data.
|
void |
download()
Downloads a resource.
|
java.lang.String |
downloadStringFile(java.lang.String url)
Downloads a file from the specified URL and returns a string.
|
protected void |
finalize()
Finalizer for this class.
|
long |
getHandle()
Gets the native handle.
|
byte[] |
getOutputData()
Gets the the external resource data as a byte array.
|
boolean |
getRequiresUpdate()
Gets the the external resource data must be updated.
|
java.lang.String |
getResourceName()
Gets the the resource name corresponing to the uri.
|
ResourceType |
getResourceType()
Gets the the resource type corresponding to the uri.
|
java.lang.String |
getUri()
Gets the the URI used to retrieve the external resource.
|
void |
setOutputData(byte[] outputData)
Sets the the external resource data as a byte array.
|
public ResourceCallbackArgs()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public ResourceCallbackArgs(long handle)
throws BiosealException
handle - Handle to the ResourceCallbackArgs.BiosealException - An error has occurred during Bioseal Library execution.public void close()
close in interface java.lang.AutoCloseableprotected void finalize()
finalize in class java.lang.Objectpublic long getHandle()
public java.lang.String getUri()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getResourceName()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public ResourceType getResourceType() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean getRequiresUpdate()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public byte[] getOutputData()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public void setOutputData(byte[] outputData)
throws BiosealException
outputData - The external resource data as a byte array.BiosealException - An error has occurred during Bioseal Library execution.public void download()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String downloadStringFile(java.lang.String url)
throws BiosealException
url - The URL to the file.BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String computeSha256()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.bioseal