ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/util/uk/org/iscream/cms/util/Smtp.java
(Generate patch)

Comparing projects/cms/source/util/uk/org/iscream/cms/util/Smtp.java (file contents):
Revision 1.3 by tdb, Mon Feb 5 20:46:28 2001 UTC vs.
Revision 1.6 by tdb, Tue May 29 17:02:35 2001 UTC

# Line 1 | Line 1
1   //---PACKAGE DECLARATION---
2 < package uk.ac.ukc.iscream.util;
2 > package uk.org.iscream.cms.server.util;
3  
4   //---IMPORTS---
5   import java.net.*;
# Line 116 | Line 116 | public class Smtp {
116      public void sendCommand(String cmd, int reply) throws IOException {
117          _socketOut.println(cmd);
118          String temp = _socketIn.readLine();
119 <        if (!temp.startsWith(new String(reply))) {
119 >        if (!temp.startsWith(new Integer(reply).toString())) {
120              throw new IOException ("Expected " + reply + ", got " + temp);
121          }
122      }
# Line 125 | Line 125 | public class Smtp {
125       * Overrides the {@link java.lang.Object#toString() Object.toString()}
126       * method to provide clean logging (every class should have this).
127       *
128 <     * This uses the uk.ac.ukc.iscream.util.FormatName class
128 >     * This uses the uk.org.iscream.cms.server.util.FormatName class
129       * to format the toString()
130       *
131       * @return the name of this class and its CVS revision

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines