Package com.google.zxing.oned
Class ITFWriter
- java.lang.Object
-
- com.google.zxing.oned.OneDimensionalCodeWriter
-
- com.google.zxing.oned.ITFWriter
-
- All Implemented Interfaces:
Writer
public final class ITFWriter extends OneDimensionalCodeWriter
This object renders a ITF code as aBitMatrix
.
-
-
Field Summary
Fields Modifier and Type Field Description private static int[]
END_PATTERN
private static int
N
private static int[][]
PATTERNS
private static int[]
START_PATTERN
private static int
W
-
Constructor Summary
Constructors Constructor Description ITFWriter()
-
Method Summary
All 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()
-
Methods inherited from class com.google.zxing.oned.OneDimensionalCodeWriter
appendPattern, checkNumeric, encode, encode, encode, getDefaultMargin
-
-
-
-
Field Detail
-
START_PATTERN
private static final int[] START_PATTERN
-
END_PATTERN
private static final int[] END_PATTERN
-
W
private static final int W
- See Also:
- Constant Field Values
-
N
private static final int N
- See Also:
- Constant Field Values
-
PATTERNS
private static final int[][] PATTERNS
-
-
Method Detail
-
getSupportedWriteFormats
protected java.util.Collection<BarcodeFormat> getSupportedWriteFormats()
- Overrides:
getSupportedWriteFormats
in classOneDimensionalCodeWriter
-
encode
public boolean[] encode(java.lang.String contents)
Description copied from class:OneDimensionalCodeWriter
Encode 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:
encode
in classOneDimensionalCodeWriter
- Parameters:
contents
- barcode contents to encode- Returns:
- a
boolean[]
of horizontal pixels (false = white, true = black)
-
-