for an application with Smack I would like to be able to measure the raw traffic that is being generated. So basically I want to count every byte Smack writes to a BufferedWriter on it’s connection and reads from the BufferedReader. I didn’t found anything usable in the JavaDocs. But probabilities are very high that I overlooked it Does anyone of you have a hint how I can do this the most elegant way?
I’m interested in the amount of data which goes over the wire (or the wireless connection). In the field of my mobile applications it could be useful to know how mich included volume of your plan is being used by instant messaging.