The JISAutoDetect converter should return a converter name of a detected encoding rather than "JISAutoDetect". This request should be considered for the code converter API.
Comments
EVALUATION
Bug 4426483 tracks the more general request for this within the nio
charset/converter SPI. Once the abstract method is provided within
the core API then a new JISAutodetect converter using the API can be provided
which provides the detected encoding name.
Ian.Little@Ireland 4/2/2001.
The NIO charset API contains the requisite methods to permit this enhancement
to be made to the JISAutoDetect decoder. The methods are:
(all public instance methods of java.nio.charset.CharsetDecoder):
public boolean isAutoDetecting()
public boolean isCharsetDetected()
public Charset detectedCharset()
By migrating the existing JISAutoDetect decoder from the older sun.io
converter implementation to the new API we can take advantage of these
API enhancements to provide a more useful JISAutoDetect decoder.
Open bugs against JISAutoDetect
such as 4388236 will also be considered and addressed appropriately
during the rewrite of the converter.
###@###.### 2002-03-15
Already addressed as part of 4831163 in 1.5
###@###.### 2003-10-16