JDK-4320428 : RFE: JISAutoDetect should return detected converter name
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2000-03-10
  • Updated: 2003-10-16
  • Resolved: 2003-10-16
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
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
15-03-2002