[kaffe] CVS kaffe (dalibor): Resynced with GNU inetlib and merged the remaining handlers in

Kaffe CVS cvs-commits at kaffe.org
Sun Jul 25 15:54:12 PDT 2004


PatchSet 5017 
Date: 2004/07/25 22:46:12
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU inetlib and merged the remaining handlers in

2004-07-25  Dalibor Topic  <robilad at kaffe.org>

        Added support for https connections.

        * libraries/clib/security/java.security:
        Added Jessie crypto provider.

        * libraries/javalib/Makefile.am,
        libraries/javalib/Makefile.in,
        libraries/javalib/all.files:
        Regenerated.

        * libraries/javalib/gnu/inet/ftp/ActiveModeDTP.java,
        libraries/javalib/gnu/inet/ftp/BlockInputStream.java,
        libraries/javalib/gnu/inet/ftp/BlockOutputStream.java,
        libraries/javalib/gnu/inet/ftp/CompressedInputStream.java,
        libraries/javalib/gnu/inet/ftp/CompressedOutputStream.java,
        libraries/javalib/gnu/inet/ftp/DTP.java,
        libraries/javalib/gnu/inet/ftp/DTPInputStream.java,
        libraries/javalib/gnu/inet/ftp/DTPOutputStream.java,
        libraries/javalib/gnu/inet/ftp/FTPConnection.java,
        libraries/javalib/gnu/inet/ftp/FTPException.java,
        libraries/javalib/gnu/inet/ftp/FTPResponse.java,
        libraries/javalib/gnu/inet/ftp/FTPURLConnection.java,
        libraries/javalib/gnu/inet/ftp/FTPURLStreamHandler.java,
        libraries/javalib/gnu/inet/ftp/Handler.java,
        libraries/javalib/gnu/inet/ftp/PassiveModeDTP.java,
        libraries/javalib/gnu/inet/ftp/StreamInputStream.java,
        libraries/javalib/gnu/inet/ftp/StreamOutputStream.java,
        libraries/javalib/gnu/inet/ftp/package.html:
        Resynced with GNU Inetlib.

        * libraries/javalib/gnu/inet/finger/FingerConnection.java,
        libraries/javalib/gnu/inet/finger/FingerURLConnection.java,
        libraries/javalib/gnu/inet/finger/Handler.java,
        libraries/javalib/gnu/inet/finger/package.html,
        libraries/javalib/gnu/inet/gopher/DirectoryEntry.java,
        libraries/javalib/gnu/inet/gopher/DirectoryListing.java,
        libraries/javalib/gnu/inet/gopher/GopherConnection.java,
        libraries/javalib/gnu/inet/gopher/GopherContentHandler.java,
        libraries/javalib/gnu/inet/gopher/GopherURLConnection.java,
        libraries/javalib/gnu/inet/gopher/Handler.java,
        libraries/javalib/gnu/inet/gopher/package.html,
        libraries/javalib/gnu/inet/http/Authenticator.java,
        libraries/javalib/gnu/inet/http/ByteArrayRequestBodyWriter.java,
        libraries/javalib/gnu/inet/http/ByteArrayResponseBodyReader.java,
        libraries/javalib/gnu/inet/http/ChunkedInputStream.java,
        libraries/javalib/gnu/inet/http/Credentials.java,
        libraries/javalib/gnu/inet/http/HTTPConnection.java,
        libraries/javalib/gnu/inet/http/HTTPDateFormat.java,
        libraries/javalib/gnu/inet/http/HTTPURLConnection.java,
        libraries/javalib/gnu/inet/http/Handler.java,
        libraries/javalib/gnu/inet/http/Headers.java,
        libraries/javalib/gnu/inet/http/Request.java,
        libraries/javalib/gnu/inet/http/RequestBodyWriter.java,
        libraries/javalib/gnu/inet/http/Response.java,
        libraries/javalib/gnu/inet/http/ResponseBodyReader.java,
        libraries/javalib/gnu/inet/http/ResponseHeaderHandler.java,
        libraries/javalib/gnu/inet/http/event/ConnectionEvent.java,
        libraries/javalib/gnu/inet/http/event/ConnectionListener.java,
        libraries/javalib/gnu/inet/http/event/RequestEvent.java,
        libraries/javalib/gnu/inet/http/event/RequestListener.java,
        libraries/javalib/gnu/inet/http/package.html,
        libraries/javalib/gnu/inet/https/Handler.java,
        libraries/javalib/gnu/inet/imap/IMAPConnection.java,
        libraries/javalib/gnu/inet/imap/IMAPConstants.java,
        libraries/javalib/gnu/inet/imap/IMAPException.java,
        libraries/javalib/gnu/inet/imap/IMAPResponse.java,
        libraries/javalib/gnu/inet/imap/IMAPResponseTokenizer.java,
        libraries/javalib/gnu/inet/imap/ListEntry.java,
        libraries/javalib/gnu/inet/imap/MailboxStatus.java,
        libraries/javalib/gnu/inet/imap/MessageStatus.java,
        libraries/javalib/gnu/inet/imap/Pair.java,
        libraries/javalib/gnu/inet/imap/UTF7imap.java,
        libraries/javalib/gnu/inet/imap/package.html,
        libraries/javalib/gnu/inet/nntp/ActiveTime.java,
        libraries/javalib/gnu/inet/nntp/ActiveTimesIterator.java,
        libraries/javalib/gnu/inet/nntp/ArticleNumberIterator.java,
        libraries/javalib/gnu/inet/nntp/ArticleResponse.java,
        libraries/javalib/gnu/inet/nntp/ArticleStream.java,
        libraries/javalib/gnu/inet/nntp/FileNewsrc.java,
        libraries/javalib/gnu/inet/nntp/Group.java,
        libraries/javalib/gnu/inet/nntp/GroupIterator.java,
        libraries/javalib/gnu/inet/nntp/GroupResponse.java,
        libraries/javalib/gnu/inet/nntp/HeaderEntry.java,
        libraries/javalib/gnu/inet/nntp/HeaderIterator.java,
        libraries/javalib/gnu/inet/nntp/LineIterator.java,
        libraries/javalib/gnu/inet/nntp/NNTPConnection.java,
        libraries/javalib/gnu/inet/nntp/NNTPConstants.java,
        libraries/javalib/gnu/inet/nntp/NNTPException.java,
        libraries/javalib/gnu/inet/nntp/Newsrc.java,
        libraries/javalib/gnu/inet/nntp/Overview.java,
        libraries/javalib/gnu/inet/nntp/OverviewIterator.java,
        libraries/javalib/gnu/inet/nntp/Pair.java,
        libraries/javalib/gnu/inet/nntp/PairIterator.java,
        libraries/javalib/gnu/inet/nntp/PendingData.java,
        libraries/javalib/gnu/inet/nntp/PostStream.java,
        libraries/javalib/gnu/inet/nntp/Range.java,
        libraries/javalib/gnu/inet/nntp/StatusResponse.java,
        libraries/javalib/gnu/inet/nntp/package.html,
        libraries/javalib/gnu/inet/pop3/POP3Connection.java,
        libraries/javalib/gnu/inet/pop3/package.html,
        libraries/javalib/gnu/inet/smtp/Parameter.java,
        libraries/javalib/gnu/inet/smtp/ParameterList.java,
        libraries/javalib/gnu/inet/smtp/SMTPConnection.java,
        libraries/javalib/gnu/inet/smtp/package.html,
        libraries/javalib/gnu/inet/util/BASE64.java,
        libraries/javalib/gnu/inet/util/CRLFInputStream.java,
        libraries/javalib/gnu/inet/util/CRLFOutputStream.java,
        libraries/javalib/gnu/inet/util/EmptyX509TrustManager.java,
        libraries/javalib/gnu/inet/util/GetLocalHostAction.java,
        libraries/javalib/gnu/inet/util/GetSystemPropertyAction.java,
        libraries/javalib/gnu/inet/util/LineInputStream.java,
        libraries/javalib/gnu/inet/util/Logger.java,
        libraries/javalib/gnu/inet/util/MessageInputStream.java,
        libraries/javalib/gnu/inet/util/MessageOutputStream.java,
        libraries/javalib/gnu/inet/util/SaslCallbackHandler.java,
        libraries/javalib/gnu/inet/util/SaslInputStream.java,
        libraries/javalib/gnu/inet/util/SaslOutputStream.java,
        libraries/javalib/gnu/inet/util/StderrLogger.java:
        Merged in from GNU Inetlib.

Members: 
	ChangeLog:1.2576->1.2577 
	libraries/clib/security/java.security:1.3->1.4 
	libraries/javalib/Makefile.am:1.206->1.207 
	libraries/javalib/Makefile.in:1.282->1.283 
	libraries/javalib/all.files:1.6->1.7 
	libraries/javalib/gnu/inet/finger/FingerConnection.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/finger/FingerURLConnection.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/finger/Handler.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/finger/package.html:INITIAL->1.1 
	libraries/javalib/gnu/inet/ftp/ActiveModeDTP.java:1.2->1.3 
	libraries/javalib/gnu/inet/ftp/BlockInputStream.java:1.2->1.3 
	libraries/javalib/gnu/inet/ftp/BlockOutputStream.java:1.2->1.3 
	libraries/javalib/gnu/inet/ftp/CompressedInputStream.java:1.2->1.3 
	libraries/javalib/gnu/inet/ftp/CompressedOutputStream.java:1.2->1.3 
	libraries/javalib/gnu/inet/ftp/DTP.java:1.2->1.3 
	libraries/javalib/gnu/inet/ftp/DTPInputStream.java:1.2->1.3 
	libraries/javalib/gnu/inet/ftp/DTPOutputStream.java:1.1->1.2 
	libraries/javalib/gnu/inet/ftp/FTPConnection.java:1.2->1.3 
	libraries/javalib/gnu/inet/ftp/FTPException.java:1.1->1.2 
	libraries/javalib/gnu/inet/ftp/FTPResponse.java:1.1->1.2 
	libraries/javalib/gnu/inet/ftp/FTPURLConnection.java:1.2->1.3 
	libraries/javalib/gnu/inet/ftp/FTPURLStreamHandler.java:1.1->1.2(DEAD) 
	libraries/javalib/gnu/inet/ftp/Handler.java:1.1->1.2 
	libraries/javalib/gnu/inet/ftp/PassiveModeDTP.java:1.2->1.3 
	libraries/javalib/gnu/inet/ftp/StreamInputStream.java:1.2->1.3 
	libraries/javalib/gnu/inet/ftp/StreamOutputStream.java:1.2->1.3 
	libraries/javalib/gnu/inet/ftp/package.html:INITIAL->1.1 
	libraries/javalib/gnu/inet/gopher/DirectoryEntry.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/gopher/DirectoryListing.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/gopher/GopherConnection.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/gopher/GopherContentHandler.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/gopher/GopherURLConnection.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/gopher/Handler.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/gopher/package.html:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/Authenticator.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/ByteArrayRequestBodyWriter.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/ByteArrayResponseBodyReader.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/ChunkedInputStream.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/Credentials.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/HTTPConnection.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/HTTPDateFormat.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/HTTPURLConnection.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/Handler.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/Headers.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/Request.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/RequestBodyWriter.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/Response.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/ResponseBodyReader.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/ResponseHeaderHandler.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/package.html:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/event/ConnectionEvent.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/event/ConnectionListener.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/event/RequestEvent.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/http/event/RequestListener.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/https/Handler.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/imap/IMAPConnection.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/imap/IMAPConstants.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/imap/IMAPException.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/imap/IMAPResponse.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/imap/IMAPResponseTokenizer.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/imap/ListEntry.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/imap/MailboxStatus.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/imap/MessageStatus.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/imap/Pair.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/imap/UTF7imap.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/imap/package.html:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/ActiveTime.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/ActiveTimesIterator.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/ArticleNumberIterator.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/ArticleResponse.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/ArticleStream.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/FileNewsrc.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/Group.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/GroupIterator.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/GroupResponse.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/HeaderEntry.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/HeaderIterator.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/LineIterator.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/NNTPConnection.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/NNTPConstants.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/NNTPException.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/Newsrc.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/Overview.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/OverviewIterator.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/Pair.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/PairIterator.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/PendingData.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/PostStream.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/Range.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/StatusResponse.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/nntp/package.html:INITIAL->1.1 
	libraries/javalib/gnu/inet/pop3/POP3Connection.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/pop3/package.html:INITIAL->1.1 
	libraries/javalib/gnu/inet/smtp/Parameter.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/smtp/ParameterList.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/smtp/SMTPConnection.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/smtp/package.html:INITIAL->1.1 
	libraries/javalib/gnu/inet/util/BASE64.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/util/CRLFInputStream.java:1.2->1.3 
	libraries/javalib/gnu/inet/util/CRLFOutputStream.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/util/EmptyX509TrustManager.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/util/GetLocalHostAction.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/util/GetSystemPropertyAction.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/util/LineInputStream.java:1.2->1.3 
	libraries/javalib/gnu/inet/util/Logger.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/util/MessageInputStream.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/util/MessageOutputStream.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/util/SaslCallbackHandler.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/util/SaslInputStream.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/util/SaslOutputStream.java:INITIAL->1.1 
	libraries/javalib/gnu/inet/util/StderrLogger.java:INITIAL->1.1 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2576 kaffe/ChangeLog:1.2577
--- kaffe/ChangeLog:1.2576	Sun Jul 25 16:33:47 2004
+++ kaffe/ChangeLog	Sun Jul 25 22:46:12 2004
@@ -1,3 +1,125 @@
+2004-07-25  Dalibor Topic  <robilad at kaffe.org>
+
+	Added support for https connections.
+
+	* libraries/clib/security/java.security: 
+	Added Jessie crypto provider.
+
+        * libraries/javalib/Makefile.am,
+        libraries/javalib/Makefile.in,
+        libraries/javalib/all.files:
+	Regenerated.
+
+        * libraries/javalib/gnu/inet/ftp/ActiveModeDTP.java,
+        libraries/javalib/gnu/inet/ftp/BlockInputStream.java,
+        libraries/javalib/gnu/inet/ftp/BlockOutputStream.java,
+        libraries/javalib/gnu/inet/ftp/CompressedInputStream.java,
+        libraries/javalib/gnu/inet/ftp/CompressedOutputStream.java,
+        libraries/javalib/gnu/inet/ftp/DTP.java,
+        libraries/javalib/gnu/inet/ftp/DTPInputStream.java,
+        libraries/javalib/gnu/inet/ftp/DTPOutputStream.java,
+        libraries/javalib/gnu/inet/ftp/FTPConnection.java,
+        libraries/javalib/gnu/inet/ftp/FTPException.java,
+        libraries/javalib/gnu/inet/ftp/FTPResponse.java,
+        libraries/javalib/gnu/inet/ftp/FTPURLConnection.java,
+        libraries/javalib/gnu/inet/ftp/FTPURLStreamHandler.java,
+        libraries/javalib/gnu/inet/ftp/Handler.java,
+        libraries/javalib/gnu/inet/ftp/PassiveModeDTP.java,
+        libraries/javalib/gnu/inet/ftp/StreamInputStream.java,
+        libraries/javalib/gnu/inet/ftp/StreamOutputStream.java,
+        libraries/javalib/gnu/inet/ftp/package.html:
+	Resynced with GNU Inetlib.
+
+        * libraries/javalib/gnu/inet/finger/FingerConnection.java,
+        libraries/javalib/gnu/inet/finger/FingerURLConnection.java,
+        libraries/javalib/gnu/inet/finger/Handler.java,
+        libraries/javalib/gnu/inet/finger/package.html,
+        libraries/javalib/gnu/inet/gopher/DirectoryEntry.java,
+        libraries/javalib/gnu/inet/gopher/DirectoryListing.java,
+        libraries/javalib/gnu/inet/gopher/GopherConnection.java,
+        libraries/javalib/gnu/inet/gopher/GopherContentHandler.java,
+        libraries/javalib/gnu/inet/gopher/GopherURLConnection.java,
+        libraries/javalib/gnu/inet/gopher/Handler.java,
+        libraries/javalib/gnu/inet/gopher/package.html,
+        libraries/javalib/gnu/inet/http/Authenticator.java,
+        libraries/javalib/gnu/inet/http/ByteArrayRequestBodyWriter.java,
+        libraries/javalib/gnu/inet/http/ByteArrayResponseBodyReader.java,
+        libraries/javalib/gnu/inet/http/ChunkedInputStream.java,
+        libraries/javalib/gnu/inet/http/Credentials.java,
+        libraries/javalib/gnu/inet/http/HTTPConnection.java,
+        libraries/javalib/gnu/inet/http/HTTPDateFormat.java,
+        libraries/javalib/gnu/inet/http/HTTPURLConnection.java,
+        libraries/javalib/gnu/inet/http/Handler.java,
+        libraries/javalib/gnu/inet/http/Headers.java,
+        libraries/javalib/gnu/inet/http/Request.java,
+        libraries/javalib/gnu/inet/http/RequestBodyWriter.java,
+        libraries/javalib/gnu/inet/http/Response.java,
+        libraries/javalib/gnu/inet/http/ResponseBodyReader.java,
+        libraries/javalib/gnu/inet/http/ResponseHeaderHandler.java,
+        libraries/javalib/gnu/inet/http/event/ConnectionEvent.java,
+        libraries/javalib/gnu/inet/http/event/ConnectionListener.java,
+        libraries/javalib/gnu/inet/http/event/RequestEvent.java,
+        libraries/javalib/gnu/inet/http/event/RequestListener.java,
+        libraries/javalib/gnu/inet/http/package.html,
+        libraries/javalib/gnu/inet/https/Handler.java,
+        libraries/javalib/gnu/inet/imap/IMAPConnection.java,
+        libraries/javalib/gnu/inet/imap/IMAPConstants.java,
+        libraries/javalib/gnu/inet/imap/IMAPException.java,
+        libraries/javalib/gnu/inet/imap/IMAPResponse.java,
+        libraries/javalib/gnu/inet/imap/IMAPResponseTokenizer.java,
+        libraries/javalib/gnu/inet/imap/ListEntry.java,
+        libraries/javalib/gnu/inet/imap/MailboxStatus.java,
+        libraries/javalib/gnu/inet/imap/MessageStatus.java,
+        libraries/javalib/gnu/inet/imap/Pair.java,
+        libraries/javalib/gnu/inet/imap/UTF7imap.java,
+        libraries/javalib/gnu/inet/imap/package.html,
+        libraries/javalib/gnu/inet/nntp/ActiveTime.java,
+        libraries/javalib/gnu/inet/nntp/ActiveTimesIterator.java,
+        libraries/javalib/gnu/inet/nntp/ArticleNumberIterator.java,
+        libraries/javalib/gnu/inet/nntp/ArticleResponse.java,
+        libraries/javalib/gnu/inet/nntp/ArticleStream.java,
+        libraries/javalib/gnu/inet/nntp/FileNewsrc.java,
+        libraries/javalib/gnu/inet/nntp/Group.java,
+        libraries/javalib/gnu/inet/nntp/GroupIterator.java,
+        libraries/javalib/gnu/inet/nntp/GroupResponse.java,
+        libraries/javalib/gnu/inet/nntp/HeaderEntry.java,
+        libraries/javalib/gnu/inet/nntp/HeaderIterator.java,
+        libraries/javalib/gnu/inet/nntp/LineIterator.java,
+        libraries/javalib/gnu/inet/nntp/NNTPConnection.java,
+        libraries/javalib/gnu/inet/nntp/NNTPConstants.java,
+        libraries/javalib/gnu/inet/nntp/NNTPException.java,
+        libraries/javalib/gnu/inet/nntp/Newsrc.java,
+        libraries/javalib/gnu/inet/nntp/Overview.java,
+        libraries/javalib/gnu/inet/nntp/OverviewIterator.java,
+        libraries/javalib/gnu/inet/nntp/Pair.java,
+        libraries/javalib/gnu/inet/nntp/PairIterator.java,
+        libraries/javalib/gnu/inet/nntp/PendingData.java,
+        libraries/javalib/gnu/inet/nntp/PostStream.java,
+        libraries/javalib/gnu/inet/nntp/Range.java,
+        libraries/javalib/gnu/inet/nntp/StatusResponse.java,
+        libraries/javalib/gnu/inet/nntp/package.html,
+        libraries/javalib/gnu/inet/pop3/POP3Connection.java,
+        libraries/javalib/gnu/inet/pop3/package.html,
+        libraries/javalib/gnu/inet/smtp/Parameter.java,
+        libraries/javalib/gnu/inet/smtp/ParameterList.java,
+        libraries/javalib/gnu/inet/smtp/SMTPConnection.java,
+        libraries/javalib/gnu/inet/smtp/package.html,
+        libraries/javalib/gnu/inet/util/BASE64.java,
+        libraries/javalib/gnu/inet/util/CRLFInputStream.java,
+        libraries/javalib/gnu/inet/util/CRLFOutputStream.java,
+        libraries/javalib/gnu/inet/util/EmptyX509TrustManager.java,
+        libraries/javalib/gnu/inet/util/GetLocalHostAction.java,
+        libraries/javalib/gnu/inet/util/GetSystemPropertyAction.java,
+        libraries/javalib/gnu/inet/util/LineInputStream.java,
+        libraries/javalib/gnu/inet/util/Logger.java,
+        libraries/javalib/gnu/inet/util/MessageInputStream.java,
+        libraries/javalib/gnu/inet/util/MessageOutputStream.java,
+        libraries/javalib/gnu/inet/util/SaslCallbackHandler.java,
+        libraries/javalib/gnu/inet/util/SaslInputStream.java,
+        libraries/javalib/gnu/inet/util/SaslOutputStream.java,
+        libraries/javalib/gnu/inet/util/StderrLogger.java:
+	Merged in from GNU Inetlib.
+
 2004-07-25  Helmer Kraemer  <hkraemer at freenet.de>
 
 	* kaffe/kaffevm/soft.c (soft_lookupinterfacemethod): 
Index: kaffe/libraries/clib/security/java.security
diff -u kaffe/libraries/clib/security/java.security:1.3 kaffe/libraries/clib/security/java.security:1.4
--- kaffe/libraries/clib/security/java.security:1.3	Sun Nov 30 23:49:32 2003
+++ kaffe/libraries/clib/security/java.security	Sun Jul 25 22:46:14 2004
@@ -6,4 +6,5 @@
 # to be picked up.
 
 security.provider.1=gnu.crypto.jce.GnuCrypto
-security.provider.2=kaffe.security.provider.Kaffe
+security.provider.2=org.metastatic.jessie.provider.Jessie
+security.provider.3=kaffe.security.provider.Kaffe
Index: kaffe/libraries/javalib/Makefile.am
diff -u kaffe/libraries/javalib/Makefile.am:1.206 kaffe/libraries/javalib/Makefile.am:1.207
--- kaffe/libraries/javalib/Makefile.am:1.206	Sun Jul 25 06:46:42 2004
+++ kaffe/libraries/javalib/Makefile.am	Sun Jul 25 22:46:15 2004
@@ -89,7 +89,16 @@
 	$(gnu_crypto_tool_keytool_SRCS) \
 	$(gnu_crypto_util_SRCS) \
 	$(gnu_getopt_SRCS) \
+	$(gnu_inet_finger_SRCS) \
 	$(gnu_inet_ftp_SRCS) \
+	$(gnu_inet_gopher_SRCS) \
+	$(gnu_inet_http_SRCS) \
+	$(gnu_inet_http_event_SRCS) \
+	$(gnu_inet_https_SRCS) \
+	$(gnu_inet_imap_SRCS) \
+	$(gnu_inet_nntp_SRCS) \
+	$(gnu_inet_pop3_SRCS) \
+	$(gnu_inet_smtp_SRCS) \
 	$(gnu_inet_util_SRCS) \
 	$(gnu_java_awt_SRCS) \
 	$(gnu_java_awt_image_SRCS) \
@@ -759,6 +768,10 @@
 gnu_getopt_SRCS = \
 	gnu/getopt/Getopt.java \
 	gnu/getopt/LongOpt.java
+gnu_inet_finger_SRCS = \
+	gnu/inet/finger/FingerConnection.java \
+	gnu/inet/finger/FingerURLConnection.java \
+	gnu/inet/finger/Handler.java
 gnu_inet_ftp_SRCS = \
 	gnu/inet/ftp/ActiveModeDTP.java \
 	gnu/inet/ftp/BlockInputStream.java \
@@ -772,14 +785,97 @@
 	gnu/inet/ftp/FTPException.java \
 	gnu/inet/ftp/FTPResponse.java \
 	gnu/inet/ftp/FTPURLConnection.java \
-	gnu/inet/ftp/FTPURLStreamHandler.java \
 	gnu/inet/ftp/Handler.java \
 	gnu/inet/ftp/PassiveModeDTP.java \
 	gnu/inet/ftp/StreamInputStream.java \
 	gnu/inet/ftp/StreamOutputStream.java
+gnu_inet_gopher_SRCS = \
+	gnu/inet/gopher/DirectoryEntry.java \
+	gnu/inet/gopher/DirectoryListing.java \
+	gnu/inet/gopher/GopherConnection.java \
+	gnu/inet/gopher/GopherContentHandler.java \
+	gnu/inet/gopher/GopherURLConnection.java \
+	gnu/inet/gopher/Handler.java
+gnu_inet_http_SRCS = \
+	gnu/inet/http/Authenticator.java \
+	gnu/inet/http/ByteArrayRequestBodyWriter.java \
+	gnu/inet/http/ByteArrayResponseBodyReader.java \
+	gnu/inet/http/ChunkedInputStream.java \
+	gnu/inet/http/Credentials.java \
+	gnu/inet/http/Handler.java \
+	gnu/inet/http/Headers.java \
+	gnu/inet/http/HTTPConnection.java \
+	gnu/inet/http/HTTPDateFormat.java \
+	gnu/inet/http/HTTPURLConnection.java \
+	gnu/inet/http/RequestBodyWriter.java \
+	gnu/inet/http/Request.java \
+	gnu/inet/http/ResponseBodyReader.java \
+	gnu/inet/http/ResponseHeaderHandler.java \
+	gnu/inet/http/Response.java
+gnu_inet_http_event_SRCS = \
+	gnu/inet/http/event/ConnectionEvent.java \
+	gnu/inet/http/event/ConnectionListener.java \
+	gnu/inet/http/event/RequestEvent.java \
+	gnu/inet/http/event/RequestListener.java
+gnu_inet_https_SRCS = \
+	gnu/inet/https/Handler.java
+gnu_inet_imap_SRCS = \
+	gnu/inet/imap/IMAPConnection.java \
+	gnu/inet/imap/IMAPConstants.java \
+	gnu/inet/imap/IMAPException.java \
+	gnu/inet/imap/IMAPResponse.java \
+	gnu/inet/imap/IMAPResponseTokenizer.java \
+	gnu/inet/imap/ListEntry.java \
+	gnu/inet/imap/MailboxStatus.java \
+	gnu/inet/imap/MessageStatus.java \
+	gnu/inet/imap/Pair.java \
+	gnu/inet/imap/UTF7imap.java
+gnu_inet_nntp_SRCS = \
+	gnu/inet/nntp/ActiveTime.java \
+	gnu/inet/nntp/ActiveTimesIterator.java \
+	gnu/inet/nntp/ArticleNumberIterator.java \
+	gnu/inet/nntp/ArticleResponse.java \
+	gnu/inet/nntp/ArticleStream.java \
+	gnu/inet/nntp/FileNewsrc.java \
+	gnu/inet/nntp/GroupIterator.java \
+	gnu/inet/nntp/Group.java \
+	gnu/inet/nntp/GroupResponse.java \
+	gnu/inet/nntp/HeaderEntry.java \
+	gnu/inet/nntp/HeaderIterator.java \
+	gnu/inet/nntp/LineIterator.java \
+	gnu/inet/nntp/Newsrc.java \
+	gnu/inet/nntp/NNTPConnection.java \
+	gnu/inet/nntp/NNTPConstants.java \
+	gnu/inet/nntp/NNTPException.java \
+	gnu/inet/nntp/OverviewIterator.java \
+	gnu/inet/nntp/Overview.java \
+	gnu/inet/nntp/PairIterator.java \
+	gnu/inet/nntp/Pair.java \
+	gnu/inet/nntp/PendingData.java \
+	gnu/inet/nntp/PostStream.java \
+	gnu/inet/nntp/Range.java \
+	gnu/inet/nntp/StatusResponse.java
+gnu_inet_pop3_SRCS = \
+	gnu/inet/pop3/POP3Connection.java
+gnu_inet_smtp_SRCS = \
+	gnu/inet/smtp/Parameter.java \
+	gnu/inet/smtp/ParameterList.java \
+	gnu/inet/smtp/SMTPConnection.java
 gnu_inet_util_SRCS = \
+	gnu/inet/util/BASE64.java \
 	gnu/inet/util/CRLFInputStream.java \
-	gnu/inet/util/LineInputStream.java
+	gnu/inet/util/CRLFOutputStream.java \
+	gnu/inet/util/EmptyX509TrustManager.java \
+	gnu/inet/util/GetLocalHostAction.java \
+	gnu/inet/util/GetSystemPropertyAction.java \
+	gnu/inet/util/LineInputStream.java \
+	gnu/inet/util/Logger.java \
+	gnu/inet/util/MessageInputStream.java \
+	gnu/inet/util/MessageOutputStream.java \
+	gnu/inet/util/SaslCallbackHandler.java \
+	gnu/inet/util/SaslInputStream.java \
+	gnu/inet/util/SaslOutputStream.java \
+	gnu/inet/util/StderrLogger.java
 gnu_java_awt_SRCS = \
 	gnu/java/awt/BitMaskExtent.java \
 	gnu/java/awt/BitwiseXORComposite.java \
Index: kaffe/libraries/javalib/Makefile.in
diff -u kaffe/libraries/javalib/Makefile.in:1.282 kaffe/libraries/javalib/Makefile.in:1.283
--- kaffe/libraries/javalib/Makefile.in:1.282	Sun Jul 25 06:46:44 2004
+++ kaffe/libraries/javalib/Makefile.in	Sun Jul 25 22:46:17 2004
@@ -413,7 +413,16 @@
 	$(gnu_crypto_tool_keytool_SRCS) \
 	$(gnu_crypto_util_SRCS) \
 	$(gnu_getopt_SRCS) \
+	$(gnu_inet_finger_SRCS) \
 	$(gnu_inet_ftp_SRCS) \
+	$(gnu_inet_gopher_SRCS) \
+	$(gnu_inet_http_SRCS) \
+	$(gnu_inet_http_event_SRCS) \
+	$(gnu_inet_https_SRCS) \
+	$(gnu_inet_imap_SRCS) \
+	$(gnu_inet_nntp_SRCS) \
+	$(gnu_inet_pop3_SRCS) \
+	$(gnu_inet_smtp_SRCS) \
 	$(gnu_inet_util_SRCS) \
 	$(gnu_java_awt_SRCS) \
 	$(gnu_java_awt_image_SRCS) \
@@ -1131,6 +1140,11 @@
 	gnu/getopt/Getopt.java \
 	gnu/getopt/LongOpt.java
 
+gnu_inet_finger_SRCS = \
+	gnu/inet/finger/FingerConnection.java \
+	gnu/inet/finger/FingerURLConnection.java \
+	gnu/inet/finger/Handler.java
+
 gnu_inet_ftp_SRCS = \
 	gnu/inet/ftp/ActiveModeDTP.java \
 	gnu/inet/ftp/BlockInputStream.java \
@@ -1144,15 +1158,106 @@
 	gnu/inet/ftp/FTPException.java \
 	gnu/inet/ftp/FTPResponse.java \
 	gnu/inet/ftp/FTPURLConnection.java \
-	gnu/inet/ftp/FTPURLStreamHandler.java \
 	gnu/inet/ftp/Handler.java \
 	gnu/inet/ftp/PassiveModeDTP.java \
 	gnu/inet/ftp/StreamInputStream.java \
 	gnu/inet/ftp/StreamOutputStream.java
 
+gnu_inet_gopher_SRCS = \
+	gnu/inet/gopher/DirectoryEntry.java \
+	gnu/inet/gopher/DirectoryListing.java \
+	gnu/inet/gopher/GopherConnection.java \
+	gnu/inet/gopher/GopherContentHandler.java \
+	gnu/inet/gopher/GopherURLConnection.java \
+	gnu/inet/gopher/Handler.java
+
+gnu_inet_http_SRCS = \
+	gnu/inet/http/Authenticator.java \
+	gnu/inet/http/ByteArrayRequestBodyWriter.java \
+	gnu/inet/http/ByteArrayResponseBodyReader.java \
+	gnu/inet/http/ChunkedInputStream.java \
+	gnu/inet/http/Credentials.java \
+	gnu/inet/http/Handler.java \
+	gnu/inet/http/Headers.java \
+	gnu/inet/http/HTTPConnection.java \
+	gnu/inet/http/HTTPDateFormat.java \
+	gnu/inet/http/HTTPURLConnection.java \
+	gnu/inet/http/RequestBodyWriter.java \
+	gnu/inet/http/Request.java \
+	gnu/inet/http/ResponseBodyReader.java \
+	gnu/inet/http/ResponseHeaderHandler.java \
+	gnu/inet/http/Response.java
+
+gnu_inet_http_event_SRCS = \
+	gnu/inet/http/event/ConnectionEvent.java \
+	gnu/inet/http/event/ConnectionListener.java \
+	gnu/inet/http/event/RequestEvent.java \
+	gnu/inet/http/event/RequestListener.java
+
+gnu_inet_https_SRCS = \
+	gnu/inet/https/Handler.java
+
+gnu_inet_imap_SRCS = \
+	gnu/inet/imap/IMAPConnection.java \
+	gnu/inet/imap/IMAPConstants.java \
+	gnu/inet/imap/IMAPException.java \
+	gnu/inet/imap/IMAPResponse.java \
+	gnu/inet/imap/IMAPResponseTokenizer.java \
+	gnu/inet/imap/ListEntry.java \
+	gnu/inet/imap/MailboxStatus.java \
+	gnu/inet/imap/MessageStatus.java \
+	gnu/inet/imap/Pair.java \
+	gnu/inet/imap/UTF7imap.java
+
+gnu_inet_nntp_SRCS = \
+	gnu/inet/nntp/ActiveTime.java \
+	gnu/inet/nntp/ActiveTimesIterator.java \
+	gnu/inet/nntp/ArticleNumberIterator.java \
+	gnu/inet/nntp/ArticleResponse.java \
+	gnu/inet/nntp/ArticleStream.java \
+	gnu/inet/nntp/FileNewsrc.java \
+	gnu/inet/nntp/GroupIterator.java \
+	gnu/inet/nntp/Group.java \
+	gnu/inet/nntp/GroupResponse.java \
+	gnu/inet/nntp/HeaderEntry.java \
+	gnu/inet/nntp/HeaderIterator.java \
+	gnu/inet/nntp/LineIterator.java \
+	gnu/inet/nntp/Newsrc.java \
+	gnu/inet/nntp/NNTPConnection.java \
+	gnu/inet/nntp/NNTPConstants.java \
+	gnu/inet/nntp/NNTPException.java \
+	gnu/inet/nntp/OverviewIterator.java \
+	gnu/inet/nntp/Overview.java \
+	gnu/inet/nntp/PairIterator.java \
+	gnu/inet/nntp/Pair.java \
+	gnu/inet/nntp/PendingData.java \
+	gnu/inet/nntp/PostStream.java \
+	gnu/inet/nntp/Range.java \
+	gnu/inet/nntp/StatusResponse.java
+
+gnu_inet_pop3_SRCS = \
+	gnu/inet/pop3/POP3Connection.java
+
+gnu_inet_smtp_SRCS = \
+	gnu/inet/smtp/Parameter.java \
+	gnu/inet/smtp/ParameterList.java \
+	gnu/inet/smtp/SMTPConnection.java
+
 gnu_inet_util_SRCS = \
+	gnu/inet/util/BASE64.java \
 	gnu/inet/util/CRLFInputStream.java \
-	gnu/inet/util/LineInputStream.java
+	gnu/inet/util/CRLFOutputStream.java \
+	gnu/inet/util/EmptyX509TrustManager.java \
+	gnu/inet/util/GetLocalHostAction.java \
+	gnu/inet/util/GetSystemPropertyAction.java \
+	gnu/inet/util/LineInputStream.java \
+	gnu/inet/util/Logger.java \
+	gnu/inet/util/MessageInputStream.java \
+	gnu/inet/util/MessageOutputStream.java \
+	gnu/inet/util/SaslCallbackHandler.java \
+	gnu/inet/util/SaslInputStream.java \
+	gnu/inet/util/SaslOutputStream.java \
+	gnu/inet/util/StderrLogger.java
 
 gnu_java_awt_SRCS = \
 	gnu/java/awt/BitMaskExtent.java \
Index: kaffe/libraries/javalib/all.files
diff -u kaffe/libraries/javalib/all.files:1.6 kaffe/libraries/javalib/all.files:1.7
--- kaffe/libraries/javalib/all.files:1.6	Sun Jul 25 06:46:44 2004
+++ kaffe/libraries/javalib/all.files	Sun Jul 25 22:46:17 2004
@@ -419,6 +419,9 @@
 gnu/crypto/util/Util.java
 gnu/getopt/Getopt.java
 gnu/getopt/LongOpt.java
+gnu/inet/finger/FingerConnection.java
+gnu/inet/finger/FingerURLConnection.java
+gnu/inet/finger/Handler.java
 gnu/inet/ftp/ActiveModeDTP.java
 gnu/inet/ftp/BlockInputStream.java
 gnu/inet/ftp/BlockOutputStream.java
@@ -431,13 +434,88 @@
 gnu/inet/ftp/FTPException.java
 gnu/inet/ftp/FTPResponse.java
 gnu/inet/ftp/FTPURLConnection.java
-gnu/inet/ftp/FTPURLStreamHandler.java
 gnu/inet/ftp/Handler.java
 gnu/inet/ftp/PassiveModeDTP.java
 gnu/inet/ftp/StreamInputStream.java
 gnu/inet/ftp/StreamOutputStream.java
+gnu/inet/gopher/DirectoryEntry.java
+gnu/inet/gopher/DirectoryListing.java
+gnu/inet/gopher/GopherConnection.java
+gnu/inet/gopher/GopherContentHandler.java
+gnu/inet/gopher/GopherURLConnection.java
+gnu/inet/gopher/Handler.java
+gnu/inet/http/Authenticator.java
+gnu/inet/http/ByteArrayRequestBodyWriter.java
+gnu/inet/http/ByteArrayResponseBodyReader.java
+gnu/inet/http/ChunkedInputStream.java
+gnu/inet/http/Credentials.java
+gnu/inet/http/event/ConnectionEvent.java
+gnu/inet/http/event/ConnectionListener.java
+gnu/inet/http/event/RequestEvent.java
+gnu/inet/http/event/RequestListener.java
+gnu/inet/http/Handler.java
+gnu/inet/http/Headers.java
+gnu/inet/http/HTTPConnection.java
+gnu/inet/http/HTTPDateFormat.java
+gnu/inet/http/HTTPURLConnection.java
+gnu/inet/http/RequestBodyWriter.java
+gnu/inet/http/Request.java
+gnu/inet/http/ResponseBodyReader.java
+gnu/inet/http/ResponseHeaderHandler.java
+gnu/inet/http/Response.java
+gnu/inet/https/Handler.java
+gnu/inet/imap/IMAPConnection.java
+gnu/inet/imap/IMAPConstants.java
+gnu/inet/imap/IMAPException.java
+gnu/inet/imap/IMAPResponse.java
+gnu/inet/imap/IMAPResponseTokenizer.java
+gnu/inet/imap/ListEntry.java
+gnu/inet/imap/MailboxStatus.java
+gnu/inet/imap/MessageStatus.java
+gnu/inet/imap/Pair.java
+gnu/inet/imap/UTF7imap.java
+gnu/inet/nntp/ActiveTime.java
+gnu/inet/nntp/ActiveTimesIterator.java
+gnu/inet/nntp/ArticleNumberIterator.java
+gnu/inet/nntp/ArticleResponse.java
+gnu/inet/nntp/ArticleStream.java
+gnu/inet/nntp/FileNewsrc.java
+gnu/inet/nntp/GroupIterator.java
+gnu/inet/nntp/Group.java
+gnu/inet/nntp/GroupResponse.java
+gnu/inet/nntp/HeaderEntry.java
+gnu/inet/nntp/HeaderIterator.java
+gnu/inet/nntp/LineIterator.java
+gnu/inet/nntp/Newsrc.java
+gnu/inet/nntp/NNTPConnection.java
+gnu/inet/nntp/NNTPConstants.java
+gnu/inet/nntp/NNTPException.java
+gnu/inet/nntp/OverviewIterator.java
+gnu/inet/nntp/Overview.java
+gnu/inet/nntp/PairIterator.java
+gnu/inet/nntp/Pair.java
+gnu/inet/nntp/PendingData.java
+gnu/inet/nntp/PostStream.java
+gnu/inet/nntp/Range.java
+gnu/inet/nntp/StatusResponse.java
+gnu/inet/pop3/POP3Connection.java
+gnu/inet/smtp/Parameter.java
+gnu/inet/smtp/ParameterList.java
+gnu/inet/smtp/SMTPConnection.java
+gnu/inet/util/BASE64.java
 gnu/inet/util/CRLFInputStream.java
+gnu/inet/util/CRLFOutputStream.java
+gnu/inet/util/EmptyX509TrustManager.java
+gnu/inet/util/GetLocalHostAction.java
+gnu/inet/util/GetSystemPropertyAction.java
 gnu/inet/util/LineInputStream.java
+gnu/inet/util/Logger.java
+gnu/inet/util/MessageInputStream.java
+gnu/inet/util/MessageOutputStream.java
+gnu/inet/util/SaslCallbackHandler.java
+gnu/inet/util/SaslInputStream.java
+gnu/inet/util/SaslOutputStream.java
+gnu/inet/util/StderrLogger.java
 gnu/java/awt/BitMaskExtent.java
 gnu/java/awt/BitwiseXORComposite.java
 gnu/java/awt/Buffers.java
===================================================================
Checking out kaffe/libraries/javalib/gnu/inet/finger/FingerConnection.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/gnu/inet/finger/FingerConnection.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/gnu/inet/finger/FingerConnection.java	Sun Jul 25 22:54:11 2004
@@ -0,0 +1,169 @@
+/*
+ * $Id: FingerConnection.java,v 1.1 2004/07/25 22:46:17 dalibor Exp $
+ * Copyright (C) 2003 The Free Software Foundation
+ * 
+ * This file is part of GNU inetlib, a library.
+ * 
+ * GNU inetlib is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * GNU inetlib is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * As a special exception, if you link this library with other files to
+ * produce an executable, this library does not by itself cause the
+ * resulting executable to be covered by the GNU General Public License.
+ * This exception does not however invalidate any other reasons why the
+ * executable file might be covered by the GNU General Public License.
+ */
+package gnu.inet.finger;
+
+import java.io.BufferedOutputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.InputStream;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.net.Socket;
+
+/**
+ * A client for the finger protocol described in RFC 1288.
+ *
+ * @author <a href='mailto:dog at gnu.org'>Chris Burdess</a>
+ */
+public class FingerConnection
+{
+
+  /**
+   * The default finger port.
+   */
+  public static final int DEFAULT_PORT = 79;
+
+  /*
+   * The US-ASCII encoding.
+   */
+  private static final String US_ASCII = "US-ASCII";
+
+  /**
+   * The underlying socket used for communications.
+   */
+  protected Socket socket;
+
+  /**
+   * If we want a verbose response.
+   */
+  protected boolean verbose;
+
+  /**
+   * Creates a new finger connection.
+   * @param host the name of the internet host to connect to
+   */
+  public FingerConnection (String host)
+    throws IOException
+    {
+      this (host, DEFAULT_PORT);
+    }
+
+  /**
+   * Creates a new finger connection.
+   * @param host the name of the internet host to connect to
+   * @param port the port to connect to
+   */
+  public FingerConnection (String host, int port)
+    throws IOException
+    {
+      socket = new Socket (host, port);
+    }
+
+  /**
+   * Retrieves the verbose flag.
+   * If true, the server should provide more output.
+   */
+  public boolean isVerbose ()
+    {
+      return verbose;
+    }
+
+  /**
+   * Sets the verbose flag.
+   * If true, the server should provide more output.
+   * @param verbose true for more verbose, false otherwise
+   */
+  public void setVerbose (boolean verbose)
+    {
+      this.verbose = verbose;
+    }
+
+  /**
+   * Lists the available users.
+   */
+  public String list ()
+    throws IOException
+    {
+      return finger (null, null);
+    }
+
+  /**
+   * Fingers the specified user.
+   * @param username the user to finger
+   * @return information about all matching users
+   */
+  public String finger (String username)
+    throws IOException
+    {
+      return finger (username, null);
+    }
+
+  /**
+   * Fingers the specified user at the specified host.
+   * @param username the user to finger (null for any user)
+   * @param hostname the domain of the user (null for any domain)
+   * @return information about all matching users
+   */
+  public String finger (String username, String hostname)
+    throws IOException
+    {
+      // Send the command
+      OutputStream out = socket.getOutputStream ();
+      out = new BufferedOutputStream (out);
+      if (verbose)
+        {
+          out.write ('/');
+          out.write ('W');
+          if (username != null || hostname != null)
+            {
+              out.write (' ');
+            }
+        }
+      if (username != null)
+        {
+          out.write (username.getBytes (US_ASCII));
+        }
+      if (hostname != null)
+        {
+          out.write ('@');
+          out.write (hostname.getBytes (US_ASCII));
+        }
+      out.write ('\r');
+      out.write ('\n');
+      out.flush ();
+      
+      // Read the response
+      InputStream in = socket.getInputStream ();
+      ByteArrayOutputStream acc = new ByteArrayOutputStream ();
+      byte[] buf = new byte[4096];
+      for (int len = in.read (buf); len != -1; len = in.read (buf))
+        {
+          acc.write (buf, 0, len);
+        }
+      return acc.toString (US_ASCII);
+    }
+
+}
===================================================================
Checking out kaffe/libraries/javalib/gnu/inet/finger/FingerURLConnection.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/gnu/inet/finger/FingerURLConnection.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/gnu/inet/finger/FingerURLConnection.java	Sun Jul 25 22:54:12 2004
@@ -0,0 +1,71 @@
+/*
+ * $Id: FingerURLConnection.java,v 1.1 2004/07/25 22:46:17 dalibor Exp $
+ * Copyright (C) 2003 The Free Software Foundation
+ * 
+ * This file is part of GNU inetlib, a library.
+ * 
+ * GNU inetlib is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * GNU inetlib is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * As a special exception, if you link this library with other files to
+ * produce an executable, this library does not by itself cause the
+ * resulting executable to be covered by the GNU General Public License.
+ * This exception does not however invalidate any other reasons why the
+ * executable file might be covered by the GNU General Public License.
+ */
+package gnu.inet.finger;
+
+import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+import java.io.IOException;
+import java.net.URL;
+import java.net.URLConnection;
+
+/**
+ * A URL connection that uses the finger protocol.
+ *
+ * @author <a href='mailto:dog at gnu.org'>Chris Burdess</a>
+ */
+class FingerURLConnection extends URLConnection
+{
+
+  FingerConnection connection;
+  String response;
+
+  FingerURLConnection (URL url) throws IOException
+    {
+      super (url);
+    }
+
+  public void connect () throws IOException
+    {
+      if (connection != null)

*** Patch too long, truncated ***




More information about the kaffe mailing list