public MessageBuffer reset ( MessageBuffer buf ) { MessageBuffer old = this . buffer ; this . buffer = buf ; if ( buf == null ) { isEmpty = true ; } else { isEmpty = false ; } return old ; }
Reset buffer . This method returns the old buffer .