1 22 package org.netbeans.lib.cvsclient.response; 23 24 import java.io.*; 25 26 import org.netbeans.lib.cvsclient.admin.*; 27 import org.netbeans.lib.cvsclient.util.*; 28 29 34 class NewEntryResponse implements Response { 35 42 public void process(LoggedDataInputStream dis, ResponseServices services) 43 throws ResponseException { 44 try { 45 String localPath = dis.readLine(); 46 String repositoryPath = dis.readLine(); 48 String entriesLine = dis.readLine(); 50 final File theFile = new File(services.convertPathname(localPath, 55 repositoryPath)); 56 final Entry entry = new Entry(entriesLine); 58 entry.setConflict(Entry.DUMMY_TIMESTAMP); 59 60 services.setEntry(theFile, entry); 61 } 62 catch (IOException e) { 63 throw new ResponseException((Exception )e.fillInStackTrace(), e.getLocalizedMessage()); 64 } 65 } 66 67 72 public boolean isTerminalResponse() { 73 return false; 74 } 75 } 76 | Popular Tags |