This doesn't answer your question but may solve your problem anyway:

As an alternative to adding a method, you could use an existing method to
accomplish the same functionality:

  // Get remaining string in tokenizer by using no delimiters.
  String remainingString = tokenizer.nextToken("");

Glenn.

-----Original Message-----
From: Deacon Marcus [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 29, 2001 8:44 AM
To: [EMAIL PROTECTED]
Subject: [OT] Feedback on Java?


Hi,
If someone have some suggestions concerning general improvements on Java
standard classes (java.lang.*, java.util.* for example) what's the "best"
way to contact "right people" to include (or not...) it in next version?
Anyone here did something like that successfully?

Example: I needed a class like StringTokenizer which allows to get the
remaining part of the processed String, i.e. forger delimeters and return
from current position to String's end. I ended up butchering
StringTokenizer's source and adding getRemaining() to subclass otherwise
identical (since everything was private I had to duplicate every line, which
technically is (c) infringment afair) - no big deal, took less than an hour
including testing, but it's pretty strange noone thought about including
something so basic from v. 1.0 to 1.4.

Greetings,
     deacon Marcus


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to