I was just trying some of the examples in java.io that is input and output programs and I am interested in this input output package. I had a question for you guys can I detect encoding of a file or a stream. Is this possible? and if it is then how. What should be required data I should gather for this purpose.