how to get input from barcode reader in java