Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 2.69 KB

code-parser-module.md

File metadata and controls

46 lines (34 loc) · 2.69 KB
layout title description keywords needAutoGenerateSidebar needGenerateH3Content noTitleIndex
default-layout
CodeParser Module - Dynamsoft Code Parser JavaScript Edition API
This page introduces the CodeParser module in Dynamsoft Code Parser JavaScript Edition.
code parser, module, api reference, javascript, js
true
true
true

DynamsoftCodeParser Module

The CodeParser module is defined in the namespace Dynamsoft.DCP. It includes the classes CodeParser and CodeParserModule along with a few interfaces and enumerations.

CodeParserModule Class

This class defines common functionality in the CodeParser module. At present, there is only one API.

API Name Description
static getVersion() Returns the version of the CodeParser module.
static loadSpec() Loads the specification for a certain type of code strings.

CodeParser Class

The CodeParser class enable users to parse given bytes or a string.

Method Description
static createInstance() Initializes a new instance of the CodeParser class.
dispose() Releases all resources used by the CodeParser object.
disposed Returns whether the CodeParser object has been disposed of.
initSettings Initializes runtime settings with the settings in a given JSON string.
resetSettings Resets runtime settings to default.
parse Parses code data for readable results.

Interfaces

Enumerations

  • [EnumMappingStatus]({{ site.dcv_enumerations }}code-parser/mapping-status.html)
  • [EnumValidationStatus]({{ site.dcv_enumerations }}code-parser/validation-status.html)