United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 5067405 (fmt) Appendable should have append(CharSequence csq, int start, int end)
5067405 : (fmt) Appendable should have append(CharSequence csq, int start, int end)

Details
Type:
Enhancement
Submit Date:
2004-06-23
Status:
Resolved
Updated Date:
2004-07-21
Project Name:
JDK
Resolved Date:
2004-07-21
Component:
core-libs
OS:
windows_xp
Sub-Component:
java.lang
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0

Related Reports

Sub Tasks

Description

Name: rmT116609			Date: 06/23/2004


A DESCRIPTION OF THE REQUEST :
Appendable should have an append(CharSequence s, int start, int end) method.

JUSTIFICATION :
This will remove the need for implementations of Appendable (such as nio.CharBuffer) to provide specific methods to append a subsequence of a particular implementation of CharSequence (such as put(String s, int start, int end)).
(Incident Review ID: 281193) 
======================================================================

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger-rc

FIXED IN:
tiger-rc

INTEGRATED IN:
tiger-b59
tiger-rc


                                     
2004-08-03
EVALUATION

This is actually a very interesting point which should be considered now since
Appendable is an interface which can not be modified later. 

Similar methods have proved useful in other classes such as 
java.nio.channel.{Gather,Scatter}ingByteChannel.

The declaration would be:

  Appendable append(CharSequence csq, int start, int end) throws IOException;

The implementation of this additional method is straight-forward in those Appendable classes which do not currently have the method.  Concrete 
implemenations would be required in  Print{Stream,Writer}, Writer, and
CharBuffer.   We would also need to provide implemenations in CharArrayWriter,
and StringWriter since methods in these classes do not throw IOExceptions.

-- iag@sfbay 2004-06-22
                                     
2004-06-22



Hardware and Software, Engineered to Work Together