I actually hoped I would find it in commons lang already - I was only asking on the struts list because I know the user list here is so much more diverse and would more likely know if it existed already somewhere.

Do you Maurizio already have a scanf implementation? Or am I misinterpreting Martin's message to you?

I should think it's about a day's work, with tests, plus a bit of thought needs to go into the design to make the parsing of the pattern string cacheable. That's why I was hoping to avoid writing scanf from scratch. But it looks like I'll have to make do with a temporary fix using Scanner on just the bits I need right now.

Maurizio Cucchiara on 13/03/11 09:52, wrote:
I think that the right place for this kind of questions is apache commons
lang ml.

Maurizio Cucchiara

Il giorno 13/mar/2011 02.26, "Martin Gainty" <mgai...@hotmail.com> ha scritto:
you can use String constructor to construct what you need from any part of a 
previous String
then use StringBuffer to concat the Strings together
but Scanner will work too.

Maurizio can you put a scanf method in StringTools that uses scanner to
replicate scanf functionality and send it to d...@struts.apache.org?
thanks,
Martin


Date: Sat, 12 Mar 2011 17:16:44 +0100
Subject: Re: RE: Just a stab in the dark
From: maurizio.cucchi...@gmail.com
To: user@struts.apache.org

Why do you prefer scanf to scanner class?
I could be wrong, but I don't believe it is possible cause of the
immutability of the string class (you cannot pass a string object as
reference).

Maurizio Cucchiara

Il giorno 12/mar/2011 15.22, "Martin Gainty" <mgai...@hotmail.com> ha
scritto:

havent seen scanf method in any of the Java classes
i welcome factoring a scanf method in
org.apache.struts2.convention.StringTools

anyone ?
Martin


Date: Sat, 12 Mar 2011 12:57:17 +0000
From: ahardy.str...@cyberspaceroad.com
To: user@struts.apache.org
Subject: Just a stab in the dark
Hi List

this is a bit OT but it's the weekend and I have a question which I am
desperat...



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to