[Beepcore-java-commits] CVS: beepcore-java/src/org/beepcore/beep/core MessageMSG.java,1.7,1.8
Status: Beta
Brought to you by:
huston
From: Huston F. <hu...@us...> - 2002-05-02 02:42:13
|
Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core In directory usw-pr-cvs1:/tmp/cvs-serv13362/src/org/beepcore/beep/core Modified Files: MessageMSG.java Log Message: better fix Index: MessageMSG.java =================================================================== RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core/MessageMSG.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** MessageMSG.java 30 Apr 2002 04:06:22 -0000 1.7 --- MessageMSG.java 2 May 2002 02:42:11 -0000 1.8 *************** *** 146,152 **** public MessageStatus sendNUL() throws BEEPException { - OutputDataStream ds = new ByteOutputDataStream(new byte[0]); MessageStatus m = new MessageStatus(this.channel, MESSAGE_TYPE_NUL, ! this.msgno, ds); this.channel.sendMessage(m); return m; --- 146,151 ---- public MessageStatus sendNUL() throws BEEPException { MessageStatus m = new MessageStatus(this.channel, MESSAGE_TYPE_NUL, ! this.msgno, NULDataStream); this.channel.sendMessage(m); return m; *************** *** 172,174 **** --- 171,181 ---- return m; } + + private static OutputDataStream NULDataStream; + + static { + NULDataStream = new OutputDataStream(); + NULDataStream.setComplete(); + } + } |