How to get file encoding type?
<blockquote>
  <p><a href="http://stackoverflow.com/questions/499010/java-how-to-determine-the-correct-charset-encoding-of-a-stream">Java : How to determine the correct charset encoding of a stream</a>  </p>
</blockquote>



<p>i want to get the file encoding type runtime for pertiqular file.</p>

<pre><code>System.getProperties("file.encoding");
</code></pre>

<p>the above code display the same encoding type for all input file.</p>
