title: Read USB Barcode Scanner Data in Java
body: <p>I have a barcode scanner (a Motorola Symbol LS4208) which scans codes and writes them where the mouse focus is at that moment( a word file, a form field). The scanner is connected via USB. 
  I want to write a Java application that listens continuouslly and intercepts all the results received from the scanner. How can I write this program?  The scanner acts like a keyboard so I can use something like KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher, but how would I differenciate from a user keyboard input and the scanner?</p>