What I have done to correct this problem is to apply the attached patch
Ug - I guess attachments don't get through the list server... And I don't even know if you want to see this on this list at all. Sorry in advance if I've committed a faux par.
Index: FingerClient.java
===================================================================
RCS file: /home/cvspublic/jakarta-commons/net/src/java/org/apache/commons/net/FingerC
lient.java,v
retrieving revision 1.3
diff -u -r1.3 FingerClient.java
--- FingerClient.java 26 Jan 2003 00:21:41 -0000 1.3
+++ FingerClient.java 29 Jul 2003 12:55:33 -0000
@@ -58,8 +58,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
-import java.net.Socket;
-import java.io.DataOutputStream;
+import java.io.PrintStream;
/***
* The FingerClient class implements the client side of the Internet Finger
@@ -174,8 +173,7 @@
public InputStream getInputStream(boolean longOutput, String username)
throws IOException
{
- Socket socket;
- DataOutputStream output;
+ PrintStream output; __query.setLength(0);
if (longOutput)
@@ -183,8 +181,8 @@
__query.append(username);
__query.append(SocketClient.NETASCII_EOL);- output = new DataOutputStream(_output_);
- output.writeBytes(__query.toString());
+ output = new PrintStream(_output_);
+ output.print(__query.toString());
output.flush();return _input_;
-- Mark Himsley
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
