Michael Koch <[EMAIL PROTECTED]> writes:

> > --- gnu/java/nio/CharBufferImpl.java.orig   Fri Nov 22 18:34:47 2002
> > +++ gnu/java/nio/CharBufferImpl.java        Fri Nov 22 18:42:19 2002
> > @@ -170,4 +170,19 @@
> >
> >      return super.toString();
> >    }
> > +
> > +  // There must be a better way of doing the following.
> > +  public CharSequence subSequence(int start, int end)
> > +  {
> > +      return toString().substring(start, end);
> > +  }
> > +  public int length()
> > +  {
> > +      return toString().length();
> > +  }
> > +  public char charAt(int i)
> > +  {
> > +      return toString().charAt(i);
> > +  }
> > +
> >  }

Doesn't this make it difficult to have a char buffer greater than the
maximum length of String?  Is this what the API recommends?
-- 
Brian Jones <[EMAIL PROTECTED]>
http://www.haphazard.org/~cbj/


_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to