SK.gnome.morena
Class MorenaLicense

java.lang.Object
  extended by SK.gnome.morena.MorenaBase
      extended by SK.gnome.morena.MorenaLicense
All Implemented Interfaces:
MorenaConstants

public final class MorenaLicense
extends MorenaBase

MorenaTwain license container.
In the applet code, before calling the TwainManager, developer need to create an instance of the MorenaLicense class: new SK.gnome.morena.MorenaLicense(NameOfYourApplet.class); This ensures that the license is searched both in the directory from where applet was loaded and in the default directory.


Field Summary
 
Fields inherited from interface SK.gnome.morena.MorenaConstants
MORENA_MESSAGES, VERSION
 
Constructor Summary
MorenaLicense(java.lang.Class owner)
          Create license instance using owner class loader.
 
Method Summary
static java.util.Enumeration enumerate()
          Enumeration of all available licenses.
 byte[] getSignature()
          Content of /morena.license.signature (or /javatwain.license.signature)
 byte[] getText()
          Content of /morena.license.properties (or /javatwain.license.properties)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MorenaLicense

public MorenaLicense(java.lang.Class owner)
              throws java.io.IOException
Create license instance using owner class loader.

Throws:
java.io.IOException
Method Detail

getText

public byte[] getText()
Content of /morena.license.properties (or /javatwain.license.properties)


getSignature

public byte[] getSignature()
Content of /morena.license.signature (or /javatwain.license.signature)


enumerate

public static java.util.Enumeration enumerate()
Enumeration of all available licenses.