Package com.esprit.utils
Class CodeBareProduct
java.lang.Object
com.esprit.utils.CodeBareProduct
Utility class providing helper methods for the RAKCHA application. Contains
reusable functionality and common operations.
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- RAKCHA Team
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
generateBarcode
(String productCode, Path filePath) Generate a barcode image for a productstatic String
readBarcode
(File barcodeImage) Read a barcode from an image file
-
Field Details
-
LOGGER
-
DEFAULT_WIDTH
private static final int DEFAULT_WIDTH- See Also:
-
DEFAULT_HEIGHT
private static final int DEFAULT_HEIGHT- See Also:
-
DEFAULT_FORMAT
- See Also:
-
-
Constructor Details
-
CodeBareProduct
public CodeBareProduct()
-
-
Method Details
-
generateBarcode
Generate a barcode image for a product- Parameters:
productCode
- The product code to encodefilePath
- The path where the barcode image should be saved- Returns:
- boolean indicating if generation was successful
-
readBarcode
Read a barcode from an image file- Parameters:
barcodeImage
- The image file containing the barcode- Returns:
- The decoded barcode text, or null if reading failed
-