Re: Message as String
"Harsh Daharwal" <[email protected]> Tue, 3 Sep 2002 10:17:37 -0500 (CDT)
| Newsgroups | gmane.network.beep.beepcore.java.general |
|---|---|
| Message-ID | <[email protected]> |
When 'receiveMSG' is called, can payload be assumed to have been completely received? If not what are the steps client is expected to take so that a complete payload is available for processing? Could you also answer this question w.r.t. ReplyListener's receiveXXX methods? Thanks. Huston said: >> - I have a profile that implements 'MessageListener' interface. >> When receiveMSG is called, a 'Message' object is passed to >> this profile. How do I get the payload of the message in >> 'String' format? > > The simplest solution is to get an InputStream from the InputDataStream > and wrap that in a Reader. You could also get the BufferSegments from > the InputDataStream and convert the bytes to characters. > >> - to compile the latest load as a 'release' version, I'm >> assuming I have to use 'dist' target for ant? > > dist will build the .tgz and .zip file that are uploaded to > sourceforge. If by 'release' you mean a non-debug version you need to > set the debug property in the ant build file appropriately. > > --Huston Harsh Daharwal (972)424-6931 ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390