AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

StreamResult in una stringa

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
Ale
Guest





PostPosted: Thu May 18, 2006 1:07 pm    Post subject: StreamResult in una stringa Reply with quote



Salve a tutti.
Una funzione richiede come parametro un oggetto di tipo StreamResult.
C'è un modo di crearne al volo uno che mi scriva il flusso in uscita
in una stringa?

xmlexp.run(param1, new StreamResult( /*VOGLIO CHE IL FLUSSO IN USCITA
FINISCA IN UNA STRINGA*/), param3);

Per ora ho risolto
- salvando il flusso in un file temporaneo,
- aprendo poi il file,
- leggendone il contenutoe salvandolo in una stringa
- ed infine visualizzo il tutto in una textbox...

Ma mi sembra un giro assurdo...

Grazie.
Ale
Back to top
Claudio Nieder
Guest





PostPosted: Thu May 18, 2006 2:07 pm    Post subject: Re: StreamResult in una stringa Reply with quote



Hi,

Quote:
- salvando il flusso in un file temporaneo,
- aprendo poi il file,
- leggendone il contenutoe salvandolo in una stringa

forse java.io.StringWriter ti può aiutare.

claudio
--
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:private (AT) claudio (DOT) ch http://www.claudio.ch
Back to top
Ale
Guest





PostPosted: Thu May 18, 2006 4:08 pm    Post subject: Re: StreamResult in una stringa Reply with quote



Funziona alla grande.
Grazie
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.