I need a method written using Java to run on Linux Leap 42.3. The method needs to read the incoming bytes of a parallel port. I must be able to tell which byte is high or low. I need to be able to set the result to be active high or active low. When I call the method it needs to return which pin is high if it is set for active high or which pin is low when set for active low.