MeteredExt

Inheritance: java.lang.Object, com.aspose.drawing.dynabic.metered.Metered

All Implemented Interfaces: com.aspose.ms.System.IDisposable

public final class MeteredExt extends Metered implements System.IDisposable

Provides methods to set metered key.


In this example, an attempt will be made to set metered public and private key
 
 `
 
 [C#]
 Metered matered = new Metered();
 matered.SetMeteredKey("PublicKey", "PrivateKey");
 [Visual Basic]
 Dim matered As Metered = New Metered
 matered.SetMeteredKey("PublicKey", "PrivateKey")
 
 `
 
 `
 the component jar file:
 
 Metered matered = new Metered();
 matered.setMeteredKey("PublicKey", "PrivateKey");
 
 `

Constructors

ConstructorDescription
MeteredExt()Initializes a new instance of the Metered class.

Methods

MethodDescription
getConsumptionQuantity()Gets consumption file size.
getConsumptionCredit()Gets consumption credit.
setMeteredKey(String publicKey, String privateKey)Sets metered public and private key
dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

MeteredExt()

public MeteredExt()

Initializes a new instance of the Metered class.

getConsumptionQuantity()

public static BigDecimal getConsumptionQuantity()

Gets consumption file size.

Returns: java.math.BigDecimal - Returns consumption quantity

getConsumptionCredit()

public static BigDecimal getConsumptionCredit()

Gets consumption credit.

Returns: java.math.BigDecimal - Returns consumption quantity

setMeteredKey(String publicKey, String privateKey)

public void setMeteredKey(String publicKey, String privateKey)

Sets metered public and private key

Parameters:

ParameterTypeDescription
publicKeyjava.lang.Stringpublic key
privateKeyjava.lang.Stringprivate key

dispose()

public void dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.