Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The unmarshaller is generic. For unmarshalling you can use any BarcodeDataFormat instance. If you've two instances, one for (generating) QR-Code and one for PDF417, it doesn't matter which one will be used.

Code Block
from("file://barcode_in?noop=true")
                        .unmarshal(code1) // for unmarshalling, the instance doesn't matter
                        .to("log:OUT")
                        .to("mock:out");