8 input data-->Arduino -->Proccesing

If anybody know how to do it in Processing.org, should I use function myPort.clear(); to clear port buffer in processing code? But where in my code should I put this? Or how should I do it?

Regards!

drejcek