Re: [Beepcore-java-users] Java Streams
Status: Beta
Brought to you by:
huston
From: Huston <hu...@us...> - 2002-12-04 02:51:03
|
> 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 |