I finally found the solution and I'd like to clarify the question and add my solution in case it is helpful for anybody else.
The project I'm working on (which is way over my head by the way) is a midi keyboard arranger. In case you don't know what it is, it's a keyboard that plays patterns (styles) and changes the tone and the arrangement depending on the chord played. What I needed was what I think is called a dump from the midi in port so that my program can figure out what chord has been played so that it can have the sequencer respond in different ways.
So to respond my own original question to do this you need to create a new transmitter for your midi in port. Then create a new receiver to receive the data stream from the new transmitter. Finally have the receiver send the data to a PrintStream and then you can do what you want with the data stream!