Package com.journeyapps.barcodescanner
Class DefaultDecoderFactory
- java.lang.Object
-
- com.journeyapps.barcodescanner.DefaultDecoderFactory
-
- All Implemented Interfaces:
DecoderFactory
public class DefaultDecoderFactory extends Object implements DecoderFactory
DecoderFactory that creates a MultiFormatReader with specified hints.
-
-
Constructor Summary
Constructors Constructor Description DefaultDecoderFactory()DefaultDecoderFactory(Collection<com.google.zxing.BarcodeFormat> decodeFormats)DefaultDecoderFactory(Collection<com.google.zxing.BarcodeFormat> decodeFormats, Map<com.google.zxing.DecodeHintType,?> hints, String characterSet, int scanType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecodercreateDecoder(Map<com.google.zxing.DecodeHintType,?> baseHints)Create a new Decoder.
-
-
-
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:DecoderFactoryCreate 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:
createDecoderin interfaceDecoderFactory- Parameters:
baseHints- default hints. Typically specifies DecodeHintType.NEED_RESULT_POINT_CALLBACK.- Returns:
- a new Decoder
-
-