Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #22000
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | markspace <markspace@nospam.nospam> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: String.substring in JDK 1.7.0_6+ |
| Date | Fri, 01 Feb 2013 22:55:29 -0800 |
| Organization | A noiseless patient Spider |
| Lines | 37 |
| Message-ID | <keid8j$2og$1@dont-email.me> (permalink) |
| References | <510c0a6a$0$8985$ba4acef3@reader.news.orange.fr> <510c9cea$0$80106$742ec2ed@news.sonic.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sat, 2 Feb 2013 06:55:15 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="fba3415ba68d85d643935af2f52f0b4b"; logging-data="2832"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BiB4oHWKvtU5eMir5lFooek1kdrtOBCw=" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
| In-Reply-To | <510c9cea$0$80106$742ec2ed@news.sonic.net> |
| Cancel-Lock | sha1:g+n6rn2pzRNjT3kCqwbyvofg+4A= |
| Xref | csiph.com comp.lang.java.programmer:22000 |
Show key headers only | View raw
On 2/1/2013 8:58 PM, Kevin McMurtrie wrote: > and the usual parsers (Integer, Long, Float) >still only accept a String. Slow Strings it is. > This I agree is a bit of a bummer, it would be useful for the parsers to take CharSequence for flexibility. Integers aren't hard to parse but floats and doubles are non-trivial. Note however that Scanner accepts both Readable (a Reader) and ReadableByteChannel in its constructors. > > Side rant: > Sun broke buffer sharing between StringBuffer and String back in Java 5. Probably because Strings needed to be immutable and there's no way to do that when sharing a mutable buffer. > we could still have a very fast > StringBuffer.toString(). Nope, see above. > As a final F-U, none of classes can be > extended even through there's no buffer sharing that can be hacked. > Probably because they don't want you doing stupid broken things, like trying to share buffers between immutable and mutable objects. I still agree that CharSequence could be made more useful though, that's a good idea. Hmmm.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
String.substring in JDK 1.7.0_6+ jlp <jlp@jlp.com> - 2013-02-01 19:33 +0100
Re: String.substring in JDK 1.7.0_6+ markspace <markspace@nospam.nospam> - 2013-02-01 10:38 -0800
Re: String.substring in JDK 1.7.0_6+ jlp <jlp@jlp.com> - 2013-02-01 19:42 +0100
Re: String.substring in JDK 1.7.0_6+ markspace <markspace@nospam.nospam> - 2013-02-01 10:45 -0800
Re: String.substring in JDK 1.7.0_6+ jlp <jlp@jlp.com> - 2013-02-01 19:57 +0100
Re: String.substring in JDK 1.7.0_6+ markspace <markspace@nospam.nospam> - 2013-02-01 11:20 -0800
Re: String.substring in JDK 1.7.0_6+ Jan Burse <janburse@fastmail.fm> - 2013-02-01 20:34 +0100
Re: String.substring in JDK 1.7.0_6+ Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2013-02-01 20:58 -0800
Re: String.substring in JDK 1.7.0_6+ markspace <markspace@nospam.nospam> - 2013-02-01 22:55 -0800
Re: String.substring in JDK 1.7.0_6+ Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2013-02-02 08:43 -0800
Re: String.substring in JDK 1.7.0_6+ markspace <markspace@nospam.nospam> - 2013-02-02 10:56 -0800
Re: String.substring in JDK 1.7.0_6+ Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2013-02-02 14:46 -0800
Re: String.substring in JDK 1.7.0_6+ markspace <markspace@nospam.nospam> - 2013-02-02 15:31 -0800
Re: String.substring in JDK 1.7.0_6+ Robert Klemme <shortcutter@googlemail.com> - 2013-02-03 15:09 +0100
csiph-web