com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class Metered



  • public class Metered
    extends Object

    Provides methods to set metered key.


     <p>In this example, an attempt will be made to set metered public and private key:</p>
      <pre lang="C#"> 
     	Metered matered = new Metered();
     	matered.SetMeteredKey("PublicKey", "PrivateKey");
       

    • Constructor Detail

      • Metered

        public Metered()

        Initializes a new instance of the Metered class.

    • Method Detail

      • setMeteredKey

        public final void setMeteredKey(String publicKey,
                         String privateKey)
                                 throws Exception

        Sets metered public and private key.

        Parameters:
        publicKey - A public key.
        privateKey - A private key
        Throws:
        Exception
      • getConsumptionQuantity

        public static double getConsumptionQuantity()

        Gets a consumption quantity.

        Returns:
        A decimal value that represents the consumption quantity.