Package com.google.zxing.oned
Class Code39Writer
- java.lang.Object
-
- com.google.zxing.oned.OneDimensionalCodeWriter
-
- com.google.zxing.oned.Code39Writer
-
- All Implemented Interfaces:
Writer
public final class Code39Writer extends OneDimensionalCodeWriter
This object renders a CODE39 code as aBitMatrix.
-
-
Constructor Summary
Constructors Constructor Description Code39Writer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean[]encode(java.lang.String contents)Encode the contents to boolean array expression of one-dimensional barcode.protected java.util.Collection<BarcodeFormat>getSupportedWriteFormats()private static voidtoIntArray(int a, int[] toReturn)private static java.lang.StringtryToConvertToExtendedMode(java.lang.String contents)-
Methods inherited from class com.google.zxing.oned.OneDimensionalCodeWriter
appendPattern, checkNumeric, encode, encode, encode, getDefaultMargin
-
-
-
-
Method Detail
-
getSupportedWriteFormats
protected java.util.Collection<BarcodeFormat> getSupportedWriteFormats()
- Overrides:
getSupportedWriteFormatsin classOneDimensionalCodeWriter
-
encode
public boolean[] encode(java.lang.String contents)
Description copied from class:OneDimensionalCodeWriterEncode the contents to boolean 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:
encodein classOneDimensionalCodeWriter- Parameters:
contents- barcode contents to encode- Returns:
- a
boolean[]of horizontal pixels (false = white, true = black)
-
toIntArray
private static void toIntArray(int a, int[] toReturn)
-
tryToConvertToExtendedMode
private static java.lang.String tryToConvertToExtendedMode(java.lang.String contents)
-
-