private void initBarcodeReader(List<String> barCodeTypes){
  EnumMap<DecodeHintType,Object> hints=new EnumMap<>(DecodeHintType.class);
  EnumSet<BarcodeFormat> decodeFormats=EnumSet.noneOf(BarcodeFormat.class);
  if (barCodeTypes != null) {
    for (    String code : barCodeTypes) {
      BarcodeFormat format=parseBarCodeString(code);
      if (format != null) {
        decodeFormats.add(format);
      }
    }
  }
  hints.put(DecodeHintType.POSSIBLE_FORMATS,decodeFormats);
  _multiFormatReader.setHints(hints);
}

private void initBarcodeReader ( List < String > barCodeTypes ) { EnumMap < DecodeHintType , Object > hints = new EnumMap < > ( DecodeHintType . class ) ; EnumSet < BarcodeFormat > decodeFormats = EnumSet . noneOf ( BarcodeFormat . class ) ; if ( barCodeTypes != null ) { for ( String code : barCodeTypes ) { BarcodeFormat format = parseBarCodeString ( code ) ; if ( format != null ) { decodeFormats . add ( format ) ; } } } hints . put ( DecodeHintType . POSSIBLE_FORMATS , decodeFormats ) ; _multiFormatReader . setHints ( hints ) ; }
initialize the barcode decoder .
