Class Code93Writer

    • Constructor Detail

      • Code93Writer

        public Code93Writer()
    • Method Detail

      • 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 class OneDimensionalCodeWriter
        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 to
        pos - start position
        pattern - pattern to append
        startColor - 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)