title: generate code39 barcode data in java?
body: <p>I'm trying to generate code39 data. It has some requirement as follows:</p>
  
  <pre><code>/*
         Code 39 Valid data char set:
              0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits)
              A - Z (Uppercase letters)
              - (Dash), $ (Dollar), % (Percentage), (Space), . (Point), / (Slash), + (Plus)
  
         Code 39 extension Valid data char set:
              All ASCII 128 characters
      */
      // Code 39 encodes upper case chars only, for lower case chars, use Code 39 extension
      barcode.setData("123456789012");
  </code></pre>
  
  <p>Now I want to know if it has a length for the generated data and how to generate it?</p>
  
  <p>Thanks</p>