Java EAN 128 Generator Data Encoding Tutorial

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


  • Draw high-quality EAN 128 barcodes in Java Class, J2SE applications by setting the size of barcode
  • Supports Java Reports software to set your wanted size of EAN 128
  • Generate and print EAN 128 in JDK 1.4.0 and later version
  • Easy to Integrate EAN 128 Generator other properties in your Java applications
  • Mature & Reliable Java EAN 128 generation library with latest barcode symbology ISO Standards
  • Provide professional features to set inter-character space and wide narrow bar ratio for EAN 128
  • Completely developed in Java for any operating systems with Java Virtual Machine
  • Encoding EAN 128 valid data set to generate valid EAN 128 images in Java applications
  • Set proper data length to generate and create valid EAN 128 barcodes in Java applications

Java EAN 128 generator provided by Onbarcode include complete GS1 128 setting details on data setting and image customization except data encoding for Java GS1 128 printing:

More specific information on how to set EAN 128 size setting properties in Java is valid here for your more professional programming;

More spcific information on how to set EAN 128 image setting properties in Java projects is valid here for your more professional programming.


Java EAN 128 Genration SDK Basic Information

Java EAN 128 generator includes the Java Applet, Servlet, and Class Library which can be implemented on any operating system with a Java Virtual Machine. It is easy to integrate this product into your Java IDEs.

EAN 128 Overview

GS1 128 , former known as EAN-128, UCC-128, USS-128, is an application standard of the GS1 implementation using the Code 128 barcode specification. The former correct name was UCC/EAN-128. Other no longer used names have included UCC-128 and GS1 128. GS1-128 uses a series of Application Identifiers to include additional data such as best before dates, batch numbers, quantities, weights and many other attributes needed by the user.

Valid Data Set to Encode EAN 128 in Java

  • all 128 characters of ASCII;
  • values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII.
  • Valid Data Length in Java

    Variable data length with all ASCII data to be encoded with Java applications for EAN 128 generation and drawing.


    AI data for Java GS1-128 Generation and Creation

    To code this different data field inside one barcode the GS1-128 or EAN/UCC-128 codes used the international standard of Application Identifiers (AI).The numbers inside the brackets are the Application Identifiers (AI) and the data behind are the data for this AI. The brackets are only used for the human readable line of the barcode. There are not coded! The AI "(01)" defines that the product code follows.

          EAN128 barcode = new EAN128();
    barcode.setData("(12)85686025");

    Java EAN 128 Data Encoding Implementations

    Encode Only Numeric Data for Java EAN 128

    All numeric digits with variable data length can be set to generate and print GS1 128 images in Java projects.

          EAN128 barcode = new EAN128();
    //AI data is necessary for EAN 128 generation in JAVA
    barcode.setData("(12)128128128128");

    Encode Only Uppercase Letters for Java EAN 128

    Uppercase letters with variable data length can be encoded to create linear barcode - GS1 128 barcodes with Java class.

          EAN128 barcode = new EAN128();
    barcode.setData("(00)EAN");

    Encode Only Special Digits for EAN 128 generation in Java

    For some special package, encoding only special digits may be required to make GS1 128 barcode images with Java on a virtual machine.

          EAN128 barcode = new EAN128();
    barcode.setData("(11):/.+");

    Encode Lowercase Digits for Java EAN 128

    EAN 128 generation component in Java can encode only lowercase digits for EAN 128 image generation.

          EAN128 barcode = new EAN128();
    barcode.setData("(22)generate");




OnBarcode is a market-leading provider of barcode imaging 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 comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. 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 © OnBarcode.com . All rights reserved.