Re: Java Streams
"Huston" <[email protected]> Tue, 3 Dec 2002 19:50:56 -0700
| Newsgroups | gmane.network.beep.beepcore.java.general |
|---|---|
| Message-ID | <006001c29b3f$f8537860$0201000a@gummy> |
> We're using beepcore-java for our client/server communication on a > "trial" project, so far so good, we've got a listener based on beepd and > our own profiles. > > One thing that makes itself clear farly quickly is how much nicer it > would be if beep's InputDataStream and OutputDataStream were derived > from java's own Stream classes (or perhaps implemented their interfaces) > > In particular it would make it easier to send/receive XML documents or > serialize entire java objects through beep channels without > "stringizing" them first. > > Have I missed a trick that makes this possible already? Has anyone > thought the same thoughts? How difficuly would it be to implement? You have a good point. In a previous version we tried doing what you suggested but ran into a couple of snags but I think the problem is better understood now and maybe we should revisit this decision. In the mean time there is an InputDataStreamAdapter (I know it is a really bad name, I keep hoping someone will suggest something better) that you can get from a InputDataStream that inherits from InputStream. Unfortunately I haven't gotten around to doing the OutputStream version but maybe it is time I addressed this and the FileOutputDataStream... --Huston ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en