public class DocumentLibrary
extends java.lang.Object
| Constructor and Description |
|---|
DocumentLibrary() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getVersion()
Retrieves the library version as a 'X.Y.Z' formatted string.
|
static LibVersion |
getVersionEx()
Retrieves the library version as a structure.
|
static void |
loadDocumentTemplate(java.lang.String path)
Loads the specified document template from a file.
|
static void |
loadDocumentTemplateBuffer(byte[] buffer)
Loads a document template from a data buffer.
|
static void |
loadModel(java.lang.String modelPath,
DocumentModel documentModel,
ProcessingUnit processingUnit)
Loads a model into memory from the specified directory.
|
static void |
loadModelBuffer(byte[] modelBuffer,
DocumentModel documentModel,
ProcessingUnit processingUnit)
Loads a model into memory from the specified buffer.
|
static void |
unloadDocumentTemplate(java.lang.String documentName)
Unloads a document template.
|
static void |
unloadModel(DocumentModel documentModel,
ProcessingUnit processingUnit)
Unloads a model from memory.
|
public static java.lang.String getVersion()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public static LibVersion getVersionEx() throws DocumentException
DocumentException - An error has occurred during Document Library execution.public static void loadDocumentTemplate(java.lang.String path)
throws DocumentException
path - A string that contains the full path to the document template.DocumentException - An error has occurred during Document Library execution.public static void loadDocumentTemplateBuffer(byte[] buffer)
throws DocumentException
buffer - A buffer containing the document template data.DocumentException - An error has occurred during Document Library execution.public static void loadModel(java.lang.String modelPath,
DocumentModel documentModel,
ProcessingUnit processingUnit)
throws DocumentException
modelPath - The path to directory containing the AI model files.documentModel - The AI model to be loaded.processingUnit - Processing unit to load the model into.DocumentException - An error has occurred during Document Library execution.public static void loadModelBuffer(byte[] modelBuffer,
DocumentModel documentModel,
ProcessingUnit processingUnit)
throws DocumentException
modelBuffer - A buffer containing the AI model to be loaded.documentModel - Doc model to load.processingUnit - The processing unit to use for the model.DocumentException - An error has occurred during Document Library execution.public static void unloadDocumentTemplate(java.lang.String documentName)
throws DocumentException
documentName - The document name.DocumentException - An error has occurred during Document Library execution.public static void unloadModel(DocumentModel documentModel, ProcessingUnit processingUnit) throws DocumentException
documentModel - The AI model to be unloaded.processingUnit - The processing unit used for the model.DocumentException - An error has occurred during Document Library execution.Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.document