> -----Original Message-----
> From: J.Pietschmann [mailto:[EMAIL PROTECTED]
> Sent: vrijdag 12 september 2003 22:14
> 
> Andreas L. Delmelle wrote:
> >>>>java.io.StringReader(xmlIn));
> > Dunno. Kind of an instinctive reaction, I guess... Why the intermediate
> > cast?
> > And why a StringReader in particular?
> 
> What cast? IIRC xmlIn is a String, and StreamSource takes a Reader,
> an InputStream or a File in the constructor.
>   new StreamSource(new StringReader(someString))
> is a stock idiom.
> Handing over the style sheet as byte array, well, this is quite a
> bit more unusual...
> 

Well, a bit of close reading would do me no harm that's for sure... :)

Hadn't noticed the xmlIn being passed as a String

Greetz,

Andreas Delmelle

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

Reply via email to