Class DefaultDecoderFactory

  • All Implemented Interfaces:
    DecoderFactory

    public class DefaultDecoderFactory
    extends Object
    implements DecoderFactory
    DecoderFactory that creates a MultiFormatReader with specified hints.
    • Constructor Detail

      • DefaultDecoderFactory

        public DefaultDecoderFactory()
      • DefaultDecoderFactory

        public DefaultDecoderFactory​(Collection<com.google.zxing.BarcodeFormat> decodeFormats)
      • DefaultDecoderFactory

        public DefaultDecoderFactory​(Collection<com.google.zxing.BarcodeFormat> decodeFormats,
                                     Map<com.google.zxing.DecodeHintType,​?> hints,
                                     String characterSet,
                                     int scanType)
    • Method Detail

      • createDecoder

        public Decoder createDecoder​(Map<com.google.zxing.DecodeHintType,​?> baseHints)
        Description copied from interface: DecoderFactory
        Create a new Decoder. While this method will only be called from a single thread, the created Decoder will be used from a different thread. Each decoder will only be used from a single thread.
        Specified by:
        createDecoder in interface DecoderFactory
        Parameters:
        baseHints - default hints. Typically specifies DecodeHintType.NEED_RESULT_POINT_CALLBACK.
        Returns:
        a new Decoder