| Parallel ports are often referred to as printer ports since output 
              to printers was their original purpose. They provide 8 lines to 
              send 8 bits simultaneously to the device. Over time various new 
              versions of parallel ports appeared that allowed for two way transmissions 
              and for faster speeds. Other devices besides printers such as ZIP 
              drives began to take advantage of this port.  However, although still available on some desktop machines, most 
              new printers and other devices needing fast I/O come with USB or 
              other fast port instead.  The ParallelPort 
              class in javax.comm 
              package allows you to open a parallel port, set the mode (such as 
              extended or enhanced), open input and output streams, and check 
              on the status of the port. Generally, the class follows the printer characterization of the 
              port. For example, it provides the methods   void 
              suspend()void restart()
 for pausing and restarting transmissions as one would do to pause 
              and restart printing. Similarly, the status check methods are   boolean 
              isPaperOut()boolean isPrinterBusy()
 boolean isPrinterSelected()
 boolean isPrinterTimedOut()
 boolean isPrinterError()
 The parallel port events only 
              fire for empty buffer output, not for the presence of input.  For futher information about parallel port I/O, we refer you to 
              the references. References and Web Resources Latest update: Dec. 13, 2004 |