Package com.google.zxing.oned
Class Code93Writer
- java.lang.Object
-
- com.google.zxing.oned.OneDimensionalCodeWriter
-
- com.google.zxing.oned.Code93Writer
-
- All Implemented Interfaces:
Writer
public class Code93Writer extends OneDimensionalCodeWriter
This object renders a CODE93 code as a BitMatrix
-
-
Constructor Summary
Constructors Constructor Description Code93Writer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private static intappendPattern(boolean[] target, int pos, int a)protected static intappendPattern(boolean[] target, int pos, int[] pattern, boolean startColor)Deprecated.without replacement; intended as an internal-only methodprivate static intcomputeChecksumIndex(java.lang.String contents, int maxWeight)(package private) static java.lang.StringconvertToExtended(java.lang.String contents)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
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. It should not be encoded for extended characters.- Returns:
- a
boolean[]of horizontal pixels (false = white, true = black)
-
appendPattern
@Deprecated protected static int appendPattern(boolean[] target, int pos, int[] pattern, boolean startColor)Deprecated.without replacement; intended as an internal-only method- Parameters:
target- output to append topos- start positionpattern- pattern to appendstartColor- unused- Returns:
- 9
-
appendPattern
private static int appendPattern(boolean[] target, int pos, int a)
-
computeChecksumIndex
private static int computeChecksumIndex(java.lang.String contents, int maxWeight)
-
convertToExtended
static java.lang.String convertToExtended(java.lang.String contents)
-
-