// Code39Constants.java
// Copyright (c) 2002-2010 Ronald B. Cemer
// All rights reserved.
// This software is released under the BSD license.
// Please see the accompanying LICENSE.txt for details.

package com.roncemer.barcode;

import java.util.*;

/**
  * Code3 of 9 bar code constants.
  *
  * @author Ronald B. Cemer
  */
public interface Code39Constants {
	public static final int[] startEndCode =
		{ 1, 2, 1, 1, 2, 1, 2, 1, 1, 1 };
	public static final int[][] codePatterns = {
		{1, 1, 1, 2, 2, 1, 2, 1, 1, 1},	// 0
		{2, 1, 1, 2, 1, 1, 1, 1, 2, 1},	// 1
		{1, 1, 2, 2, 1, 1, 1, 1, 2, 1},	// 2
		{2, 1, 2, 2, 1, 1, 1, 1, 1, 1},	// 2
		{1, 1, 1, 2, 2, 1, 1, 1, 2, 1},	// 4
		{2, 1, 1, 2, 2, 1, 1, 1, 1, 1},	// 5
		{1, 1, 2, 2, 2, 1, 1, 1, 1, 1},	// 6
		{1, 1, 1, 2, 1, 1, 2, 1, 2, 1},	// 7
		{2, 1, 1, 2, 1, 1, 2, 1, 1, 1},	// 8
		{1, 1, 2, 2, 1, 1, 2, 1, 1, 1},	// 9
		{2, 1, 1, 1, 1, 2, 1, 1, 2, 1},	// A
		{1, 1, 2, 1, 1, 2, 1, 1, 2, 1},	// B
		{2, 1, 2, 1, 1, 2, 1, 1, 1, 1},	// C
		{1, 1, 1, 1, 2, 2, 1, 1, 2, 1},	// D
		{2, 1, 1, 1, 2, 2, 1, 1, 1, 1},	// E
		{1, 1, 2, 1, 2, 2, 1, 1, 1, 1},	// F
		{1, 1, 1, 1, 1, 2, 2, 1, 2, 1},	// G
		{2, 1, 1, 1, 1, 2, 2, 1, 1, 1},	// H
		{1, 1, 2, 1, 1, 2, 2, 1, 1, 1},	// I
		{1, 1, 1, 1, 2, 2, 2, 1, 1, 1},	// J
		{2, 1, 1, 1, 1, 1, 1, 2, 2, 1},	// K
		{1, 1, 2, 1, 1, 1, 1, 2, 2, 1},	// L
		{2, 1, 2, 1, 1, 1, 1, 2, 1, 1},	// M
		{1, 1, 1, 1, 2, 1, 1, 2, 2, 1},	// N
		{2, 1, 1, 1, 2, 1, 1, 2, 1, 1},	// O
		{1, 1, 2, 1, 2, 1, 1, 2, 1, 1},	// P
		{1, 1, 1, 1, 1, 1, 2, 2, 2, 1},	// Q
		{2, 1, 1, 1, 1, 1, 2, 2, 1, 1},	// R
		{1, 1, 2, 1, 1, 1, 2, 2, 1, 1},	// S
		{1, 1, 1, 1, 2, 1, 2, 2, 1, 1},	// T
		{2, 2, 1, 1, 1, 1, 1, 1, 2, 1},	// U
		{1, 2, 2, 1, 1, 1, 1, 1, 2, 1},	// V
		{2, 2, 2, 1, 1, 1, 1, 1, 1, 1},	// W
		{1, 2, 1, 1, 2, 1, 1, 1, 2, 1},	// X
		{2, 2, 1, 1, 2, 1, 1, 1, 1, 1},	// Y
		{1, 2, 2, 1, 2, 1, 1, 1, 1, 1},	// Z
		{1, 2, 1, 1, 1, 1, 2, 1, 2, 1},	// -
		{2, 2, 1, 1, 1, 1, 2, 1, 1, 1},	// .
		{1, 2, 2, 1, 1, 1, 2, 1, 1, 1},	// space
		{1, 2, 1, 1, 2, 1, 2, 1, 1, 1},	// $
		{1, 2, 1, 2, 1, 2, 1, 1, 1, 1},	// /
		{1, 2, 1, 2, 1, 1, 1, 2, 1, 1},	// +
		{1, 2, 1, 1, 1, 2, 1, 2, 1, 1}	// %
	};
	public static final String codeChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";
}
