许可证

Inheritance: java.lang.Object

public class License

提供对组件授权的方法。

欲了解更多信息,请访问 Licensing and Subscription 文档文章。

构造函数

构造函数描述
License()初始化此类的新实例。

方法

方法描述
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
setLicense(InputStream stream)为组件授权。
setLicense(String licenseName)为组件授权。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

License()

public License()

初始化此类的新实例。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.lang.Object

Returns: 布尔

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setLicense(InputStream stream)

public void setLicense(InputStream stream)

为组件授权。

使用此方法从流中加载许可证。

Parameters:

参数类型描述
java.io.InputStream包含许可证的流。

setLicense(String licenseName)

public void setLicense(String licenseName)

为组件授权。

尝试在以下位置查找许可证:

  1. 明确路径。

  2. 包含 Aspose 组件 JAR 文件的文件夹。

  3. 包含客户端调用的 JAR 文件的文件夹。

Parameters:

参数类型描述
licenseNamejava.lang.String可以是完整或简短的文件名。使用空字符串切换到评估模式。

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int