Class CodeBareProduct

java.lang.Object
com.esprit.utils.CodeBareProduct

public class CodeBareProduct extends Object
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 Details

  • Constructor Details

    • CodeBareProduct

      public CodeBareProduct()
  • Method Details

    • generateBarcode

      public static boolean generateBarcode(String productCode, Path filePath)
      Generate a barcode image for a product
      Parameters:
      productCode - The product code to encode
      filePath - The path where the barcode image should be saved
      Returns:
      boolean indicating if generation was successful
    • readBarcode

      public static String readBarcode(File barcodeImage)
      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