1 22 package org.netbeans.lib.cvsclient.response; 23 24 import java.io.*; 25 26 import org.netbeans.lib.cvsclient.event.*; 27 import org.netbeans.lib.cvsclient.util.*; 28 29 33 class MessageTaggedResponse implements Response { 34 40 public void process(LoggedDataInputStream dis, ResponseServices services) 41 throws ResponseException { 42 try { 43 final String text = dis.readLine(); 44 MessageEvent event = new MessageEvent(this, text, false); 45 event.setTagged(true); 46 services.getEventManager().fireCVSEvent(event); 47 } 48 catch (EOFException ex) { 49 throw new ResponseException(ex, ResponseException.getLocalMessage("CommandException.EndOfFile", null)); } 51 catch (IOException ex) { 52 throw new ResponseException(ex); 53 } 54 } 55 56 61 public boolean isTerminalResponse() { 62 return false; 63 } 64 } 65 | Popular Tags |