public class BarcodeWriter extends Object implements Consumer<IdentValue>
This is a Consumer
for
RandomIdent
which generates one barcode for a
RandomIdent
.
This class is thread safe, as long as no barcodes for the same ident are generated.
Constructor and Description |
---|
BarcodeWriter(CodeConfig codeConfig,
CodeData codeData)
Create a new instance with the given barcode config and output factories.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IdentValue identValue)
Generate the barcode for the given ident and configured barcode.
|
public BarcodeWriter(CodeConfig codeConfig, CodeData codeData)
Create a new instance with the given barcode config and output factories.
codeConfig
- the configuration for the barcode to generate.codeData
- the factories for the output files.public void accept(IdentValue identValue)
Generate the barcode for the given ident and configured barcode.
accept
in interface Consumer<IdentValue>
identValue
- the ident (and its values) for output.Copyright © 2020 sw4j.org. All rights reserved.