com.google.zxing.oned
Class CodaBarWriter
java.lang.Object
com.google.zxing.oned.OneDimensionalCodeWriter
com.google.zxing.oned.CodaBarWriter
- All Implemented Interfaces:
- Writer
public class CodaBarWriter
- extends OneDimensionalCodeWriter
This class renders CodaBar as BitMatrix.
- Author:
- dsbnatut@gmail.com (Kazuki Nishiura)
|
Method Summary |
byte[] |
encode(String contents)
Encode the contents to byte array expression of one-dimensional barcode. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodaBarWriter
public CodaBarWriter()
encode
public byte[] encode(String contents)
- Description copied from class:
OneDimensionalCodeWriter
- Encode the contents to byte array expression of one-dimensional barcode.
Start code and end code should be included in result, and side margins should not be included.
- Specified by:
encode in class OneDimensionalCodeWriter
- Returns:
- a byte array of horizontal pixels (0 = white, 1 = black)
Copyright © 2007-2012. All Rights Reserved.