Class ITFWriter
java.lang.Object
com.google.zxing.oned.OneDimensionalCodeWriter
com.google.zxing.oned.ITFWriter
- All Implemented Interfaces:
Writer
This object renders a ITF code as a
BitMatrix.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[]private static final intprivate static final int[][]private static final int[]private static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean[]Encode the contents to boolean array expression of one-dimensional barcode.protected Collection<BarcodeFormat> Methods inherited from class OneDimensionalCodeWriter
appendPattern, checkNumeric, encode, encode, encode, getDefaultMargin
-
Field Details
-
START_PATTERN
private static final int[] START_PATTERN -
END_PATTERN
private static final int[] END_PATTERN -
W
private static final int W- See Also:
-
N
private static final int N- See Also:
-
PATTERNS
private static final int[][] PATTERNS
-
-
Constructor Details
-
ITFWriter
public ITFWriter()
-
-
Method Details
-
getSupportedWriteFormats
- Overrides:
getSupportedWriteFormatsin classOneDimensionalCodeWriter
-
encode
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)
-