Java EAN-13 Generator Data Encoding Tutorial

sample source code to input valid data and generate linear EAN-13 images in Java

  • Pre-configured industry standards EAN-13 allow any untrained users to insert EAN-13 in Java
  • Java Server Side projects (JSP, Servlet, EJB, J2EE, Web Service) can be easily integrated
  • Java Client applications (Java Class, Swing, Applet, Java Bean and J2SE) are supported
  • Easy to generate EAN-13 images in Java Reports, such as Jasper Report, iReport, Eclipse BIRT and Oracle Reports
  • Check sum digit of EAN-13 image can be automatically computed
  • Detailed tutorial guide for Java EAN-13 generator is provided for your easier programming
  • Valid character set and available data length can be referred in the EAN-13 page
  • Encoding EAN-13 valid data set to generate valid EAN-13 images in Java applications

Java EAN-13 data encoding focuses on details on how to encode EAN-13 valid data set with valid data length in Java development, and other EAN-13 tutorial guides are provided below:

Samples on how to set EAN-13 size setting properties in Java can be found here;

Samples on how to set EAN-13 image setting properties in Java projects can be fonud here.

Java EAN-13 Basic Information

Java EAN-13 generator is entirely built in JDK 1.4.2 and supports JDK 1.4.2 and greater version. Using this product, accurate EAN-13 barcode images may be generated in Java class, Java servlet, J2EE web projects, and Java apps.

EAN-13 Overview

EAN-13, also known as European Article Number 13, UPC-13, GTIN-13, GS1-13, EAN/UCC-13, is a super set of UPC-A, was developed by the International Article Numbering Association (EAN) in Europe and now is used worldwide to mark products often sold at retail point of sale, is a 13 digit (12 data digits and 1 check digit) barcode symbology, which is defined by GS1.

Valid Data Set to Encode EAN-13 in Java

  • Numeric Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9;

Valid Data Length in Java

Java EAN-13 is a linear barcode type for Java Barcode Generator which can only encode 13 data length including auto check sum digit computed in Java EAN-13 generator.In addition, 2 or 5 supplement data can be encoded for drawing EAN-13 image with some special need for data encoding in Java.

Encode 13 Digits for EAN-13 in Java Example

      //Build EAN-13 object in Java class
      EAN13 barcode = new EAN13();
//Encode 12 numeric digits excluding check sum digit caculated and displayed automatically once setting data in Java barcode.setData("123412341234");

Encode 15 Digits for EAN-13 in Java Example

For encoding 15 digits in Java EAN-13, 2 supplement data should be set with the property supData with numerici characters in Java development.

      EAN13 barcode = new EAN13();

Encode 18 Digits for EAN-13 in Java Example

For encoding 18 digits in Java EAN-13, 5 supplement data should be set with the property supData with numerici characters in Java development.

      EAN13 barcode = new EAN13();

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 ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide 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.