From: Kay <Kay...@be...> - 2005-09-16 07:33:00
|
Hi, Reading in the xml is currently done via Java's Ressource mechanism, so it's not possible right now to simply read from a String or InputStream. I've talked to Joachim about this and we think it would be a useful addition to be able to chose one of several ways to read in the xml definition. We'll provide a central hook in the code for loading xml definitions so that it's possible to provide different implementations. The default way will be the current Resource mechanism. After the hook is in place it should be easy for you to implement any loading mechanism you like. We'll be happy to include your contribution into gui4j then. We'll send a note when the hook is in CVS... Thanks, Kay "Rahul Shrivastava" <shr...@ho...> Sent by: gui...@li... 13.09.2005 00:23 To gui...@li... cc Subject [Gui4j-user] how to read xml from an InputStream Hi I have recetly started using GUI4J and this is the prolem i am facing. I wanted to render the GUI depending on the messages that are being passed through a socket. I was browsing through the API and currently there is no mechanism where the xml can be read from a String (or more generally as a stream). The source xml is always being treated as a file. Is it possible to provide a way (i.e. if it does not exist - and if it does please can you provide an example) by which the xml is read as a string(or InputStream) rather than as a name of the resource? Thanks Rahul ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Gui4j-user mailing list Gui...@li... https://lists.sourceforge.net/lists/listinfo/gui4j-user |