}
protected String getCurrentIANAEncoding() throws UnsupportedEncodingException
{
EncodingMap encodingMap = new EncodingMapImpl();
String ianaEncoding = encodingMap.convertJava2IANA(PrivilegedSystemHelper.getProperty("file.encoding"));
if (ianaEncoding == null)
{
throw new UnsupportedEncodingException("Can't find corresponding type of encoding for : "
+ System.getProperty("file.encoding"));
}
return encodingMap.convertJava2IANA(ianaEncoding);
}