Re: [Beepcore-java-users] Message as String
Status: Beta
Brought to you by:
huston
From: Harsh D. <hda...@io...> - 2002-09-03 15:26:05
|
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 |