01: /*
02: ** Java cvs client library package.
03: ** Copyright (c) 1997-2004 by Timothy Gerard Endres
04: **
05: ** This program is free software.
06: **
07: ** You may redistribute it and/or modify it under the terms of the GNU
08: ** Library General Public License (LGPL) as published by the Free Software
09: ** Foundation.
10: **
11: ** Version 2 of the license should be included with this distribution in
12: ** the file LICENSE.txt, as well as License.html. If the license is not
13: ** included with this distribution, you may find a copy at the FSF web
14: ** site at 'www.gnu.org' or 'www.fsf.org', or you may write to the Free
15: ** Software Foundation at 59 Temple Place - Suite 330, Boston, MA 02111 USA.
16: **
17: ** THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND,
18: ** NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR
19: ** OF THIS SOFTWARE, ASSUMES _NO_ RESPONSIBILITY FOR ANY
20: ** CONSEQUENCE RESULTING FROM THE USE, MODIFICATION, OR
21: ** REDISTRIBUTION OF THIS SOFTWARE.
22: **
23: */
24:
25: package com.ice.cvsc;
26:
27: import com.ice.cvsc.CVSResponse;
28: import com.ice.cvsc.CVSUserInterface;
29:
30: public class CVSBufferedUI implements CVSUserInterface {
31: StringBuffer buf = new StringBuffer();
32:
33: public void uiDisplayProgressMsg(String message) {
34: buf.append(message).append("\r\n");
35: }
36:
37: public void uiDisplayProgramError(String error) {
38: buf.append(error).append("\r\n");
39: }
40:
41: public void uiDisplayResponse(CVSResponse response) {
42: buf.append(response.getResultText()).append(
43: response.getResultStatus()).append("\r\n");
44: }
45:
46: public String toString() {
47: return buf.toString();
48: }
49:
50: }
|