Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Splitting an old String

Hi Wim,

According to the Foundation 1.1.2 API (@see http://java.sun.com/javame/reference/apis/jsr219/)

--- SNIP ---
StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split method of String or the java.util.regex package instead.
--- SNIP ---

I'm not an ME expert myself, but if from these docs it seems that is not necessary...

Best regards,
 Dann

Wim Jongman wrote:
Hi,

I have almost ironed out the downport to foundation 1.1 for the core NNTP classes. But i have troubles replacing String.split(regex). I tried Stringtokenizer but this class fails to correctly split
"xxx\txxx\t\txxx" into fours strings with \t as the token. 

I don't want to write the millionth String splitter class. Is there one already available that works with foundation 1.1?

-- 

Met vriendelijke groet,

Wim Jongman

Remain Software (http://remainsoftware.com)
http://twitter.com/remainsoftware
http://twitter.com/wimjongman

_______________________________________________ ecf-dev mailing list ecf-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/ecf-dev


Back to the top