Java Data Matrix Generator Data Encoding Tutorial

sample source code to input valid data and generate 2D Data Matrix images in Java

  • Draw high-quality Data Matrix barcodes in Java Class, J2SE applications by setting the size of barcode
  • Supports Java Reports software to set your wanted size of Data Matrix
  • Data Matrix image width in Java can be changed with Y (bar height), barcodeHeight, topMargin and bottomMargin
  • Unit of Measure can set the generated Data Matrix image in Inch, CM or Pixel
  • Text margin, text font can influence the size of Data Matrix in Java
  • autoResize can adjust the generated Data Matrix barcode image in Java automatically
  • Valid character set and available data length can be referred in the Data Matrix page

Java Data Matrix data encoding focuses on details on how to encode Data Matrix valid data set with valid data length in Java development, while here are some other setting in Java Data Matrix generation process which you may need to refer to:

Samples on how to set Data Matrix size setting properties in Java such as unit of measure, margins, fixed barcode width, fixed minimum bar module width and so on;

Samples on how to set Data Matrix image setting properties in Java projects such as image bacground color, rotation, image formats(png, bmp, jpeg, tiff, gif)and so on.

Java Data Matrix Basic Information

Java Data Matrix is is a 2D barcode generation SDK consisting of servlets, which is compatible with all browsers, easy to embed in HTML as an image with the tag and can be used to add server-side barcode generator capability to a dedicated Web server.

Data Matrix Overview

Data Matrixis, also known as Data Matrix ECC200, is a two-dimensional matrix barcode consisting of black and white "cells" or modules arranged in either a square or rectangular pattern. The information to be encoded can be text or raw data. Usual data size is from a few bytes up to 1556 bytes. The length of the encoded data depends on the symbol dimension used.

Valid Data Set to Encode Data Matrix in Java

  • ASCII values 0 - 127 in accordance with the US national version of ISO/IEC 646
  • ASCII values 128 - 255 in accordance with ISO 8859-1. These are referred to as extended ASCII

Valid Data Length in Java

Java Data Matrix is famous for its large data compability storage of data which obviously can encode any data length with Data Matrix valid data set in Java applications.

Java Data Matrix Valid Data Set Encoding

Encode All ASCII Character for Java Data Matrix

ASII data mode for Java Data Matrix is used to encode data that mainly contains ASCII data from 0 - 127.

      DataMatrix barcode = new DataMatrix();

Encode C40 Letters for Java Data Matrix

C40 data mode is used encode data that mainly contains numeric and uppercase data in Java Data Matrix generator.

      DataMatrix barcode = new DataMatrix();

Encode Text for Java Data Matrix

Emcode TEXT data mode for Java Data Matrix to generate Data Matrix with encoding data that mainly contains numeric and lowercase characters in Java.

      DataMatrix barcode = new DataMatrix();

Encode X12 for Java Data Matrix

Data Matrix X12 data mode is used to encode the standard ANSI X12 electronic data interchange characters to generate Data Matrix with Java.

      DataMatrix barcode = new DataMatrix();

Encode EDIFACT for Java Data Matrix

Data Matrix EDIFACT property is used to encode 63 ASCII values (values from 32 to 94) plus an Unlatch character (binary 011111) to draw Data Matrix in Java.

      DataMatrix barcode = new DataMatrix();

Encode BASED256 for Java Data Matrix

Data Matrix BASED256 property is used to encode 8 bit values to generate Data Matrix images in Java.

      DataMatrix barcode = new DataMatrix();

Java Data Matrix Encoding Data Capability

The storage capability for Java Data Matrix can be found as below:

  • Alphanumeric data: 2,335 characters

  • 8-Bit Byte data:1,555 characters

  • Numeric data: 3,116 characters

OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge .NET HTML5 Document Viewer high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © . All rights reserved.