get data from the chat record over the  internet


I have a question regarding how to use the processing to get the data from the internet. For example, how can I get the data chating from msn simultaneously, I found some program like sniffer can record the data. But how can I connect it to processing .

or I have can write a java program to record the data from chat ,but I am not sure how connect processing?If anyone has some experience or knowledge, can you help me with that or give me some suggestions?

Heap Thanks in Andvance :)