How to add standard Analyzers using java?

Hi

I want to add standard analyzer using java.please help me.

Thanks