You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rw...@apache.org on 2006/12/21 17:28:56 UTC
svn commit: r489397 [1/5] - in
/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java:
examples/ examples/nntp/ examples/ntp/ org/apache/commons/net/
org/apache/commons/net/bsd/ org/apache/commons/net/chargen/
org/apache/commons/net/daytime/...
Author: rwinston
Date: Thu Dec 21 08:28:51 2006
New Revision: 489397
URL: http://svn.apache.org/viewvc?view=rev&rev=489397
Log:
Update license headers to the correct version.
See http://www.apache.org/legal/src-headers.html for details
Modified:
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/FTPExample.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/FTPSExample.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/IOUtil.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/TelnetClientExample.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/chargen.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/daytime.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/echo.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/finger.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/fwhois.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/mail.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/messages.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/ExtendedNNTPOps.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/MessageThreading.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/NNTPUtils.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/newsgroups.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/post.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/ntp/NTPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/ntp/TimeClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rdate.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rexec.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rlogin.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rshell.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/server2serverFTP.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/tftp.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/weatherTelnet.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DatagramSocketClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DatagramSocketFactory.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DefaultDatagramSocketFactory.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DefaultSocketFactory.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/MalformedServerReplyException.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/PrintCommandListener.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ProtocolCommandEvent.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ProtocolCommandListener.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ProtocolCommandSupport.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/SocketClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/bsd/RCommandClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/bsd/RExecClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/bsd/RLoginClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/chargen/CharGenTCPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/chargen/CharGenUDPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/daytime/DaytimeTCPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/daytime/DaytimeUDPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/discard/DiscardTCPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/discard/DiscardUDPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/echo/EchoTCPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/echo/EchoUDPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/finger/FingerClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/Configurable.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTP.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPClientConfig.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPCommand.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPConnectionClosedException.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPFile.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPFileEntryParser.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPFileEntryParserImpl.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPListParseEngine.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPReply.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPSClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPSCommand.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPSSocketFactory.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/FTPSTrustManager.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/CompositeFileEntryParser.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/ConfigurableFTPFileEntryParserImpl.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParser.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/FTPTimestampParser.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImpl.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/NTFTPEntryParser.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/OS2FTPEntryParser.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/ParserInitializationException.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/RegexFTPFileEntryParserImpl.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/CopyStreamAdapter.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/CopyStreamEvent.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/CopyStreamException.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/CopyStreamListener.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/DotTerminatedMessageReader.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/DotTerminatedMessageWriter.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/FromNetASCIIInputStream.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/FromNetASCIIOutputStream.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/SocketInputStream.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/SocketOutputStream.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/ToNetASCIIInputStream.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/ToNetASCIIOutputStream.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/io/Util.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/nntp/Article.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/nntp/ArticlePointer.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/nntp/NNTP.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/nntp/NNTPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/nntp/NNTPCommand.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/nntp/NNTPConnectionClosedException.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/nntp/NNTPReply.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/nntp/NewGroupsOrNewsQuery.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/nntp/NewsgroupInfo.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/nntp/SimpleNNTPHeader.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/nntp/Threadable.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/nntp/Threader.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ntp/NTPUDPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ntp/NtpUtils.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ntp/NtpV3Impl.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ntp/NtpV3Packet.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ntp/TimeInfo.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/ntp/TimeStamp.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/pop3/POP3.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/pop3/POP3Client.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/pop3/POP3Command.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/pop3/POP3MessageInfo.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/pop3/POP3Reply.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/smtp/RelayPath.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/smtp/SMTP.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/smtp/SMTPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/smtp/SMTPCommand.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/smtp/SMTPConnectionClosedException.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/smtp/SMTPReply.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/smtp/SimpleSMTPHeader.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/EchoOptionHandler.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/InvalidTelnetOptionException.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/SimpleOptionHandler.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/SuppressGAOptionHandler.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/Telnet.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/TelnetClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/TelnetCommand.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/TelnetInputStream.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/TelnetNotificationHandler.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/TelnetOption.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/TelnetOptionHandler.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/TelnetOutputStream.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/TerminalTypeOptionHandler.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/telnet/WindowSizeOptionHandler.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/tftp/TFTP.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/tftp/TFTPAckPacket.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/tftp/TFTPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/tftp/TFTPDataPacket.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/tftp/TFTPErrorPacket.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/tftp/TFTPPacket.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/tftp/TFTPPacketException.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/tftp/TFTPReadRequestPacket.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/tftp/TFTPRequestPacket.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/tftp/TFTPWriteRequestPacket.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/time/TimeTCPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/time/TimeUDPClient.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/util/ListenerList.java
jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/whois/WhoisClient.java
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/FTPExample.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/FTPExample.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/FTPExample.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/FTPExample.java Thu Dec 21 08:28:51 2006
@@ -1,190 +1,192 @@
-/*
- * Copyright 2001-2006 The Apache Software Foundation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package examples;
-
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.PrintWriter;
-
-import org.apache.commons.net.PrintCommandListener;
-import org.apache.commons.net.ftp.FTP;
-import org.apache.commons.net.ftp.FTPClient;
-import org.apache.commons.net.ftp.FTPConnectionClosedException;
-import org.apache.commons.net.ftp.FTPReply;
-
-/***
- * This is an example program demonstrating how to use the FTPClient class.
- * This program connects to an FTP server and retrieves the specified
- * file. If the -s flag is used, it stores the local file at the FTP server.
- * Just so you can see what's happening, all reply strings are printed.
- * If the -b flag is used, a binary transfer is assumed (default is ASCII).
- * <p>
- * Usage: ftp [-s] [-b] <hostname> <username> <password> <remote file> <local file>
- * <p>
- ***/
-public final class FTPExample
-{
-
- public static final String USAGE =
- "Usage: ftp [-s] [-b] <hostname> <username> <password> <remote file> <local file>\n" +
- "\nDefault behavior is to download a file and use ASCII transfer mode.\n" +
- "\t-s store file on server (upload)\n" +
- "\t-b use binary transfer mode\n";
-
- public static final void main(String[] args)
- {
- int base = 0;
- boolean storeFile = false, binaryTransfer = false, error = false;
- String server, username, password, remote, local;
- FTPClient ftp;
-
- for (base = 0; base < args.length; base++)
- {
- if (args[base].startsWith("-s"))
- storeFile = true;
- else if (args[base].startsWith("-b"))
- binaryTransfer = true;
- else
- break;
- }
-
- if ((args.length - base) != 5)
- {
- System.err.println(USAGE);
- System.exit(1);
- }
-
- server = args[base++];
- username = args[base++];
- password = args[base++];
- remote = args[base++];
- local = args[base];
-
- ftp = new FTPClient();
- ftp.addProtocolCommandListener(new PrintCommandListener(
- new PrintWriter(System.out)));
-
- try
- {
- int reply;
- ftp.connect(server);
- System.out.println("Connected to " + server + ".");
-
- // After connection attempt, you should check the reply code to verify
- // success.
- reply = ftp.getReplyCode();
-
- if (!FTPReply.isPositiveCompletion(reply))
- {
- ftp.disconnect();
- System.err.println("FTP server refused connection.");
- System.exit(1);
- }
- }
- catch (IOException e)
- {
- if (ftp.isConnected())
- {
- try
- {
- ftp.disconnect();
- }
- catch (IOException f)
- {
- // do nothing
- }
- }
- System.err.println("Could not connect to server.");
- e.printStackTrace();
- System.exit(1);
- }
-
-__main:
- try
- {
- if (!ftp.login(username, password))
- {
- ftp.logout();
- error = true;
- break __main;
- }
-
- System.out.println("Remote system is " + ftp.getSystemName());
-
- if (binaryTransfer)
- ftp.setFileType(FTP.BINARY_FILE_TYPE);
-
- // Use passive mode as default because most of us are
- // behind firewalls these days.
- ftp.enterLocalPassiveMode();
-
- if (storeFile)
- {
- InputStream input;
-
- input = new FileInputStream(local);
-
- ftp.storeFile(remote, input);
-
- input.close();
- }
- else
- {
- OutputStream output;
-
- output = new FileOutputStream(local);
-
- ftp.retrieveFile(remote, output);
-
- output.close();
- }
-
- ftp.logout();
- }
- catch (FTPConnectionClosedException e)
- {
- error = true;
- System.err.println("Server closed connection.");
- e.printStackTrace();
- }
- catch (IOException e)
- {
- error = true;
- e.printStackTrace();
- }
- finally
- {
- if (ftp.isConnected())
- {
- try
- {
- ftp.disconnect();
- }
- catch (IOException f)
- {
- // do nothing
- }
- }
- }
-
- System.exit(error ? 1 : 0);
- } // end main
-
-}
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package examples;
+
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.PrintWriter;
+
+import org.apache.commons.net.PrintCommandListener;
+import org.apache.commons.net.ftp.FTP;
+import org.apache.commons.net.ftp.FTPClient;
+import org.apache.commons.net.ftp.FTPConnectionClosedException;
+import org.apache.commons.net.ftp.FTPReply;
+
+/***
+ * This is an example program demonstrating how to use the FTPClient class.
+ * This program connects to an FTP server and retrieves the specified
+ * file. If the -s flag is used, it stores the local file at the FTP server.
+ * Just so you can see what's happening, all reply strings are printed.
+ * If the -b flag is used, a binary transfer is assumed (default is ASCII).
+ * <p>
+ * Usage: ftp [-s] [-b] <hostname> <username> <password> <remote file> <local file>
+ * <p>
+ ***/
+public final class FTPExample
+{
+
+ public static final String USAGE =
+ "Usage: ftp [-s] [-b] <hostname> <username> <password> <remote file> <local file>\n" +
+ "\nDefault behavior is to download a file and use ASCII transfer mode.\n" +
+ "\t-s store file on server (upload)\n" +
+ "\t-b use binary transfer mode\n";
+
+ public static final void main(String[] args)
+ {
+ int base = 0;
+ boolean storeFile = false, binaryTransfer = false, error = false;
+ String server, username, password, remote, local;
+ FTPClient ftp;
+
+ for (base = 0; base < args.length; base++)
+ {
+ if (args[base].startsWith("-s"))
+ storeFile = true;
+ else if (args[base].startsWith("-b"))
+ binaryTransfer = true;
+ else
+ break;
+ }
+
+ if ((args.length - base) != 5)
+ {
+ System.err.println(USAGE);
+ System.exit(1);
+ }
+
+ server = args[base++];
+ username = args[base++];
+ password = args[base++];
+ remote = args[base++];
+ local = args[base];
+
+ ftp = new FTPClient();
+ ftp.addProtocolCommandListener(new PrintCommandListener(
+ new PrintWriter(System.out)));
+
+ try
+ {
+ int reply;
+ ftp.connect(server);
+ System.out.println("Connected to " + server + ".");
+
+ // After connection attempt, you should check the reply code to verify
+ // success.
+ reply = ftp.getReplyCode();
+
+ if (!FTPReply.isPositiveCompletion(reply))
+ {
+ ftp.disconnect();
+ System.err.println("FTP server refused connection.");
+ System.exit(1);
+ }
+ }
+ catch (IOException e)
+ {
+ if (ftp.isConnected())
+ {
+ try
+ {
+ ftp.disconnect();
+ }
+ catch (IOException f)
+ {
+ // do nothing
+ }
+ }
+ System.err.println("Could not connect to server.");
+ e.printStackTrace();
+ System.exit(1);
+ }
+
+__main:
+ try
+ {
+ if (!ftp.login(username, password))
+ {
+ ftp.logout();
+ error = true;
+ break __main;
+ }
+
+ System.out.println("Remote system is " + ftp.getSystemName());
+
+ if (binaryTransfer)
+ ftp.setFileType(FTP.BINARY_FILE_TYPE);
+
+ // Use passive mode as default because most of us are
+ // behind firewalls these days.
+ ftp.enterLocalPassiveMode();
+
+ if (storeFile)
+ {
+ InputStream input;
+
+ input = new FileInputStream(local);
+
+ ftp.storeFile(remote, input);
+
+ input.close();
+ }
+ else
+ {
+ OutputStream output;
+
+ output = new FileOutputStream(local);
+
+ ftp.retrieveFile(remote, output);
+
+ output.close();
+ }
+
+ ftp.logout();
+ }
+ catch (FTPConnectionClosedException e)
+ {
+ error = true;
+ System.err.println("Server closed connection.");
+ e.printStackTrace();
+ }
+ catch (IOException e)
+ {
+ error = true;
+ e.printStackTrace();
+ }
+ finally
+ {
+ if (ftp.isConnected())
+ {
+ try
+ {
+ ftp.disconnect();
+ }
+ catch (IOException f)
+ {
+ // do nothing
+ }
+ }
+ }
+
+ System.exit(error ? 1 : 0);
+ } // end main
+
+}
+
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/FTPSExample.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/FTPSExample.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/FTPSExample.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/FTPSExample.java Thu Dec 21 08:28:51 2006
@@ -1,194 +1,196 @@
-/*
- * Copyright 2001-2006 The Apache Software Foundation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package examples;
-
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.PrintWriter;
-import java.security.NoSuchAlgorithmException;
-
-import org.apache.commons.net.PrintCommandListener;
-import org.apache.commons.net.ftp.FTP;
-import org.apache.commons.net.ftp.FTPConnectionClosedException;
-import org.apache.commons.net.ftp.FTPReply;
-import org.apache.commons.net.ftp.FTPSClient;
-
-/***
- * This is an example program demonstrating how to use the FTPSClient class.
- * This program connects to an FTP server and retrieves the specified
- * file. If the -s flag is used, it stores the local file at the FTP server.
- * Just so you can see what's happening, all reply strings are printed.
- * If the -b flag is used, a binary transfer is assumed (default is ASCII).
- * <p>
- * Usage: ftp [-s] [-b] <hostname> <username> <password> <remote file> <local file>
- * <p>
- ***/
-public final class FTPSExample
-{
-
- public static final String USAGE =
- "Usage: ftp [-s] [-b] <hostname> <username> <password> <remote file> <local file>\n" +
- "\nDefault behavior is to download a file and use ASCII transfer mode.\n" +
- "\t-s store file on server (upload)\n" +
- "\t-b use binary transfer mode\n";
-
- public static final void main(String[] args) throws NoSuchAlgorithmException
- {
- int base = 0;
- boolean storeFile = false, binaryTransfer = false, error = false;
- String server, username, password, remote, local;
- String protocol = "SSL"; // SSL/TLS
- FTPSClient ftps;
-
- for (base = 0; base < args.length; base++)
- {
- if (args[base].startsWith("-s"))
- storeFile = true;
- else if (args[base].startsWith("-b"))
- binaryTransfer = true;
- else
- break;
- }
-
- if ((args.length - base) != 5)
- {
- System.err.println(USAGE);
- System.exit(1);
- }
-
- server = args[base++];
- username = args[base++];
- password = args[base++];
- remote = args[base++];
- local = args[base];
-
- ftps = new FTPSClient(protocol);
-
- ftps.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.out)));
-
- try
- {
- int reply;
-
- ftps.connect(server);
- System.out.println("Connected to " + server + ".");
-
- // After connection attempt, you should check the reply code to verify
- // success.
- reply = ftps.getReplyCode();
-
- if (!FTPReply.isPositiveCompletion(reply))
- {
- ftps.disconnect();
- System.err.println("FTP server refused connection.");
- System.exit(1);
- }
- }
- catch (IOException e)
- {
- if (ftps.isConnected())
- {
- try
- {
- ftps.disconnect();
- }
- catch (IOException f)
- {
- // do nothing
- }
- }
- System.err.println("Could not connect to server.");
- e.printStackTrace();
- System.exit(1);
- }
-
-__main:
- try
- {
- ftps.setBufferSize(1000);
-
- if (!ftps.login(username, password))
- {
- ftps.logout();
- error = true;
- break __main;
- }
-
-
- System.out.println("Remote system is " + ftps.getSystemName());
-
- if (binaryTransfer) ftps.setFileType(FTP.BINARY_FILE_TYPE);
-
- // Use passive mode as default because most of us are
- // behind firewalls these days.
- ftps.enterLocalPassiveMode();
-
- if (storeFile)
- {
- InputStream input;
-
- input = new FileInputStream(local);
-
- ftps.storeFile(remote, input);
-
- input.close();
- }
- else
- {
- OutputStream output;
-
- output = new FileOutputStream(local);
-
- ftps.retrieveFile(remote, output);
-
- output.close();
- }
-
- ftps.logout();
- }
- catch (FTPConnectionClosedException e)
- {
- error = true;
- System.err.println("Server closed connection.");
- e.printStackTrace();
- }
- catch (IOException e)
- {
- error = true;
- e.printStackTrace();
- }
- finally
- {
- if (ftps.isConnected())
- {
- try
- {
- ftps.disconnect();
- }
- catch (IOException f)
- {
- // do nothing
- }
- }
- }
-
- System.exit(error ? 1 : 0);
- } // end main
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package examples;
+
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.PrintWriter;
+import java.security.NoSuchAlgorithmException;
+
+import org.apache.commons.net.PrintCommandListener;
+import org.apache.commons.net.ftp.FTP;
+import org.apache.commons.net.ftp.FTPConnectionClosedException;
+import org.apache.commons.net.ftp.FTPReply;
+import org.apache.commons.net.ftp.FTPSClient;
+
+/***
+ * This is an example program demonstrating how to use the FTPSClient class.
+ * This program connects to an FTP server and retrieves the specified
+ * file. If the -s flag is used, it stores the local file at the FTP server.
+ * Just so you can see what's happening, all reply strings are printed.
+ * If the -b flag is used, a binary transfer is assumed (default is ASCII).
+ * <p>
+ * Usage: ftp [-s] [-b] <hostname> <username> <password> <remote file> <local file>
+ * <p>
+ ***/
+public final class FTPSExample
+{
+
+ public static final String USAGE =
+ "Usage: ftp [-s] [-b] <hostname> <username> <password> <remote file> <local file>\n" +
+ "\nDefault behavior is to download a file and use ASCII transfer mode.\n" +
+ "\t-s store file on server (upload)\n" +
+ "\t-b use binary transfer mode\n";
+
+ public static final void main(String[] args) throws NoSuchAlgorithmException
+ {
+ int base = 0;
+ boolean storeFile = false, binaryTransfer = false, error = false;
+ String server, username, password, remote, local;
+ String protocol = "SSL"; // SSL/TLS
+ FTPSClient ftps;
+
+ for (base = 0; base < args.length; base++)
+ {
+ if (args[base].startsWith("-s"))
+ storeFile = true;
+ else if (args[base].startsWith("-b"))
+ binaryTransfer = true;
+ else
+ break;
+ }
+
+ if ((args.length - base) != 5)
+ {
+ System.err.println(USAGE);
+ System.exit(1);
+ }
+
+ server = args[base++];
+ username = args[base++];
+ password = args[base++];
+ remote = args[base++];
+ local = args[base];
+
+ ftps = new FTPSClient(protocol);
+
+ ftps.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.out)));
+
+ try
+ {
+ int reply;
+
+ ftps.connect(server);
+ System.out.println("Connected to " + server + ".");
+
+ // After connection attempt, you should check the reply code to verify
+ // success.
+ reply = ftps.getReplyCode();
+
+ if (!FTPReply.isPositiveCompletion(reply))
+ {
+ ftps.disconnect();
+ System.err.println("FTP server refused connection.");
+ System.exit(1);
+ }
+ }
+ catch (IOException e)
+ {
+ if (ftps.isConnected())
+ {
+ try
+ {
+ ftps.disconnect();
+ }
+ catch (IOException f)
+ {
+ // do nothing
+ }
+ }
+ System.err.println("Could not connect to server.");
+ e.printStackTrace();
+ System.exit(1);
+ }
+
+__main:
+ try
+ {
+ ftps.setBufferSize(1000);
+
+ if (!ftps.login(username, password))
+ {
+ ftps.logout();
+ error = true;
+ break __main;
+ }
+
+
+ System.out.println("Remote system is " + ftps.getSystemName());
+
+ if (binaryTransfer) ftps.setFileType(FTP.BINARY_FILE_TYPE);
+
+ // Use passive mode as default because most of us are
+ // behind firewalls these days.
+ ftps.enterLocalPassiveMode();
+
+ if (storeFile)
+ {
+ InputStream input;
+
+ input = new FileInputStream(local);
+
+ ftps.storeFile(remote, input);
+
+ input.close();
+ }
+ else
+ {
+ OutputStream output;
+
+ output = new FileOutputStream(local);
+
+ ftps.retrieveFile(remote, output);
+
+ output.close();
+ }
+
+ ftps.logout();
+ }
+ catch (FTPConnectionClosedException e)
+ {
+ error = true;
+ System.err.println("Server closed connection.");
+ e.printStackTrace();
+ }
+ catch (IOException e)
+ {
+ error = true;
+ e.printStackTrace();
+ }
+ finally
+ {
+ if (ftps.isConnected())
+ {
+ try
+ {
+ ftps.disconnect();
+ }
+ catch (IOException f)
+ {
+ // do nothing
+ }
+ }
+ }
+
+ System.exit(error ? 1 : 0);
+ } // end main
+
+}
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/IOUtil.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/IOUtil.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/IOUtil.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/IOUtil.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.IOException;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/TelnetClientExample.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/TelnetClientExample.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/TelnetClientExample.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/TelnetClientExample.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2003-2004 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.InputStream;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/chargen.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/chargen.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/chargen.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/chargen.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.BufferedReader;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/daytime.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/daytime.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/daytime.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/daytime.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.IOException;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/echo.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/echo.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/echo.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/echo.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.BufferedReader;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/finger.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/finger.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/finger.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/finger.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.IOException;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/fwhois.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/fwhois.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/fwhois.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/fwhois.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.IOException;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/mail.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/mail.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/mail.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/mail.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.BufferedReader;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/messages.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/messages.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/messages.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/messages.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.BufferedReader;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/ExtendedNNTPOps.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/ExtendedNNTPOps.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/ExtendedNNTPOps.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/ExtendedNNTPOps.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples.nntp;
import java.io.IOException;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/MessageThreading.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/MessageThreading.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/MessageThreading.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/MessageThreading.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples.nntp;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/NNTPUtils.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/NNTPUtils.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/NNTPUtils.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/NNTPUtils.java Thu Dec 21 08:28:51 2006
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package examples.nntp;
import java.io.BufferedReader;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/newsgroups.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/newsgroups.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/newsgroups.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/newsgroups.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples.nntp;
import java.io.IOException;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/post.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/post.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/post.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/nntp/post.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples.nntp;
import java.io.BufferedReader;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/ntp/NTPClient.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/ntp/NTPClient.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/ntp/NTPClient.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/ntp/NTPClient.java Thu Dec 21 08:28:51 2006
@@ -1,12 +1,13 @@
package examples.ntp;
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -15,6 +16,7 @@
* limitations under the License.
*/
+
import java.io.IOException;
import java.net.InetAddress;
import java.net.SocketException;
@@ -169,4 +171,4 @@
client.close();
}
-}
\ No newline at end of file
+}
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/ntp/TimeClient.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/ntp/TimeClient.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/ntp/TimeClient.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/ntp/TimeClient.java Thu Dec 21 08:28:51 2006
@@ -1,13 +1,14 @@
package examples.ntp;
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -15,6 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
import java.io.IOException;
import java.net.InetAddress;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rdate.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rdate.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rdate.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rdate.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.IOException;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rexec.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rexec.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rexec.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rexec.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.IOException;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rlogin.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rlogin.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rlogin.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rlogin.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.IOException;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rshell.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rshell.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rshell.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/rshell.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.IOException;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/server2serverFTP.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/server2serverFTP.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/server2serverFTP.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/server2serverFTP.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.IOException;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/tftp.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/tftp.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/tftp.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/tftp.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.File;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/weatherTelnet.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/weatherTelnet.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/weatherTelnet.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/examples/weatherTelnet.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package examples;
import java.io.IOException;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DatagramSocketClient.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DatagramSocketClient.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DatagramSocketClient.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DatagramSocketClient.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package org.apache.commons.net;
import java.net.DatagramSocket;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DatagramSocketFactory.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DatagramSocketFactory.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DatagramSocketFactory.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DatagramSocketFactory.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package org.apache.commons.net;
import java.net.DatagramSocket;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DefaultDatagramSocketFactory.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DefaultDatagramSocketFactory.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DefaultDatagramSocketFactory.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DefaultDatagramSocketFactory.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package org.apache.commons.net;
import java.net.DatagramSocket;
Modified: jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DefaultSocketFactory.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DefaultSocketFactory.java?view=diff&rev=489397&r1=489396&r2=489397
==============================================================================
--- jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DefaultSocketFactory.java (original)
+++ jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/src/main/java/org/apache/commons/net/DefaultSocketFactory.java Thu Dec 21 08:28:51 2006
@@ -1,11 +1,12 @@
/*
- * Copyright 2001-2006 The Apache Software Foundation
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package org.apache.commons.net;
import java.io.IOException;
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org