public void generateBarcode(Barcodable barcodable, BarcodeGenerator barcodeGenerator, OutputStream output) throws IOException {
writeImageToStream(getImage(barcodable, barcodeGenerator, new BarcodeDimension(100, 100)), output);
}
public RenderedImage generateSquareDataMatrix(Barcodable barcodable, int width) throws IOException {
DataMatrixBean dmb = (DataMatrixBean)DATAMATRIX;
dmb.setShape(SymbolShapeHint.FORCE_SQUARE);
return getImage(barcodable, dmb, new BarcodeDimension(width, width));
}