if (BARCODE_CODE128.equals(type))
{
try
{
return new Code128Barcode(data, Code128Barcode.O);
}
catch (BarcodeException e)
{
logger.error("Wrong code128 data supplied", e);
return null;
}
}
if (BARCODE_CODE128A.equals(type))
{
try
{
return new Code128Barcode(data, Code128Barcode.A);
}
catch (BarcodeException e)
{
logger.error("Wrong code128 data supplied", e);
return null;
}
}
if (BARCODE_CODE128B.equals(type))
{
try
{
return new Code128Barcode(data, Code128Barcode.B);
}
catch (BarcodeException e)
{
logger.error("Wrong code128 data supplied", e);
return null;
}
}
if (BARCODE_CODE128C.equals(type))
{
try
{
return new Code128Barcode(data, Code128Barcode.C);
}
catch (BarcodeException e)
{
logger.error("Wrong code128 data supplied", e);
return null;