laoyuyu 6 years ago
parent 66b36b355a
commit e22e2dc840
  1. 2
      Aria/build.gradle
  2. 2
      AriaAnnotations/build.gradle
  3. 2
      AriaCompiler/build.gradle
  4. 2
      AriaFtpPlug/build.gradle
  5. 4
      AriaFtpPlug/src/main/java/aria/apache/commons/net/DatagramSocketClient.java
  6. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/DatagramSocketFactory.java
  7. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/DefaultDatagramSocketFactory.java
  8. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/DefaultSocketFactory.java
  9. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/MalformedServerReplyException.java
  10. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/PrintCommandListener.java
  11. 4
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ProtocolCommandEvent.java
  12. 5
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ProtocolCommandListener.java
  13. 8
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ProtocolCommandSupport.java
  14. 4
      AriaFtpPlug/src/main/java/aria/apache/commons/net/SocketClient.java
  15. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/Configurable.java
  16. 50
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTP.java
  17. 93
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPClient.java
  18. 8
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPClientConfig.java
  19. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPCmd.java
  20. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPCommand.java
  21. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPConnectionClosedException.java
  22. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPFile.java
  23. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPFileEntryParser.java
  24. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPFileEntryParserImpl.java
  25. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPFileFilter.java
  26. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPFileFilters.java
  27. 4
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPHTTPClient.java
  28. 4
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPListParseEngine.java
  29. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPReply.java
  30. 18
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPSClient.java
  31. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPSCommand.java
  32. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPSServerSocketFactory.java
  33. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPSSocketFactory.java
  34. 5
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/FTPSTrustManager.java
  35. 4
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/OnFtpInputStreamListener.java
  36. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/package-info.java
  37. 8
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/CompositeFileEntryParser.java
  38. 7
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/ConfigurableFTPFileEntryParserImpl.java
  39. 18
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.java
  40. 10
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParser.java
  41. 6
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.java
  42. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/FTPTimestampParser.java
  43. 11
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/FTPTimestampParserImpl.java
  44. 7
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/MLSxEntryParser.java
  45. 10
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/MVSFTPEntryParser.java
  46. 10
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/MacOsPeterFTPEntryParser.java
  47. 12
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/NTFTPEntryParser.java
  48. 10
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/NetwareFTPEntryParser.java
  49. 10
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/OS2FTPEntryParser.java
  50. 7
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/OS400FTPEntryParser.java
  51. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/ParserInitializationException.java
  52. 5
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/RegexFTPFileEntryParserImpl.java
  53. 10
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/UnixFTPEntryParser.java
  54. 17
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/VMSFTPEntryParser.java
  55. 8
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java
  56. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/ftp/parser/package-info.java
  57. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/CRLFLineReader.java
  58. 4
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/CopyStreamAdapter.java
  59. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/CopyStreamEvent.java
  60. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/CopyStreamException.java
  61. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/CopyStreamListener.java
  62. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/DotTerminatedMessageReader.java
  63. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/DotTerminatedMessageWriter.java
  64. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/FromNetASCIIInputStream.java
  65. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/FromNetASCIIOutputStream.java
  66. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/SocketInputStream.java
  67. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/SocketOutputStream.java
  68. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/ToNetASCIIInputStream.java
  69. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/ToNetASCIIOutputStream.java
  70. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/Util.java
  71. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/io/package-info.java
  72. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/util/Base64.java
  73. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/util/Charsets.java
  74. 5
      AriaFtpPlug/src/main/java/aria/apache/commons/net/util/KeyManagerUtils.java
  75. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/util/ListenerList.java
  76. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/util/SSLContextUtils.java
  77. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/util/SSLSocketUtils.java
  78. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/util/SubnetUtils.java
  79. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/util/TrustManagerUtils.java
  80. 2
      AriaFtpPlug/src/main/java/aria/apache/commons/net/util/package-info.java
  81. 1
      DEV_LOG.md
  82. 4
      build.gradle
  83. 4
      gradle.properties

@ -30,4 +30,4 @@ dependencies {
// compile project(':AriaFtpPlug') // compile project(':AriaFtpPlug')
} }
apply from: 'bintray-release.gradle' //apply from: 'bintray-release.gradle'

@ -11,4 +11,4 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar']) compile fileTree(dir: 'libs', include: ['*.jar'])
} }
apply from: 'bintray-release.gradle' //apply from: 'bintray-release.gradle'

@ -14,4 +14,4 @@ dependencies {
compile project(':AriaAnnotations') compile project(':AriaAnnotations')
} }
apply from: 'bintray-release.gradle' //apply from: 'bintray-release.gradle'

@ -11,4 +11,4 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar']) compile fileTree(dir: 'libs', include: ['*.jar'])
} }
//apply from: 'bintray-release.gradle' apply from: 'bintray-release.gradle'

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net; package aria.apache.commons.net;
import java.net.DatagramSocket; import java.net.DatagramSocket;
import java.net.InetAddress; import java.net.InetAddress;
@ -33,7 +33,7 @@ import java.nio.charset.Charset;
* especially useful for adding things like proxy support as well as better * especially useful for adding things like proxy support as well as better
* support for applets. For * support for applets. For
* example, you could create a * example, you could create a
* {@link org.apache.commons.net.DatagramSocketFactory} * {@link DatagramSocketFactory}
* that * that
* requests browser security capabilities before creating a socket. * requests browser security capabilities before creating a socket.
* All classes derived from DatagramSocketClient should use the * All classes derived from DatagramSocketClient should use the

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net; package aria.apache.commons.net;
import java.net.DatagramSocket; import java.net.DatagramSocket;
import java.net.InetAddress; import java.net.InetAddress;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net; package aria.apache.commons.net;
import java.net.DatagramSocket; import java.net.DatagramSocket;
import java.net.InetAddress; import java.net.InetAddress;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net; package aria.apache.commons.net;
import java.io.IOException; import java.io.IOException;
import java.net.InetAddress; import java.net.InetAddress;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net; package aria.apache.commons.net;
import java.io.IOException; import java.io.IOException;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net; package aria.apache.commons.net;
import java.io.PrintStream; import java.io.PrintStream;
import java.io.PrintWriter; import java.io.PrintWriter;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net; package aria.apache.commons.net;
import java.util.EventObject; import java.util.EventObject;
@ -25,7 +25,7 @@ import java.util.EventObject;
* ASCII text reply. For debugging and other purposes, it is extremely * ASCII text reply. For debugging and other purposes, it is extremely
* useful to log or keep track of the contents of the protocol messages. * useful to log or keep track of the contents of the protocol messages.
* The ProtocolCommandEvent class coupled with the * The ProtocolCommandEvent class coupled with the
* {@link org.apache.commons.net.ProtocolCommandListener} * {@link ProtocolCommandListener}
* interface facilitate this process. * interface facilitate this process.
* *
* *

@ -15,8 +15,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net; package aria.apache.commons.net;
import aria.apache.commons.net.ftp.FTPClient;
import java.util.EventListener; import java.util.EventListener;
/*** /***
@ -30,7 +31,7 @@ import java.util.EventListener;
* To receive ProtocolCommandEvents, you merely implement the * To receive ProtocolCommandEvents, you merely implement the
* ProtocolCommandListener interface and register the class as a listener * ProtocolCommandListener interface and register the class as a listener
* with a ProtocolCommandEvent source such as * with a ProtocolCommandEvent source such as
* {@link org.apache.commons.net.ftp.FTPClient}. * {@link FTPClient}.
* *
* *
* @see ProtocolCommandEvent * @see ProtocolCommandEvent

@ -15,12 +15,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net; package aria.apache.commons.net;
import java.io.Serializable; import java.io.Serializable;
import java.util.EventListener; import java.util.EventListener;
import org.apache.commons.net.util.ListenerList; import aria.apache.commons.net.util.ListenerList;
/*** /***
* ProtocolCommandSupport is a convenience class for managing a list of * ProtocolCommandSupport is a convenience class for managing a list of
@ -53,7 +53,7 @@ public class ProtocolCommandSupport implements Serializable {
/*** /***
* Fires a ProtocolCommandEvent signalling the sending of a command to all * Fires a ProtocolCommandEvent signalling the sending of a command to all
* registered listeners, invoking their * registered listeners, invoking their
* {@link org.apache.commons.net.ProtocolCommandListener#protocolCommandSent protocolCommandSent() } * {@link ProtocolCommandListener#protocolCommandSent protocolCommandSent() }
* methods. * methods.
* *
* @param command The string representation of the command type sent, not * @param command The string representation of the command type sent, not
@ -74,7 +74,7 @@ public class ProtocolCommandSupport implements Serializable {
/*** /***
* Fires a ProtocolCommandEvent signalling the reception of a command reply * Fires a ProtocolCommandEvent signalling the reception of a command reply
* to all registered listeners, invoking their * to all registered listeners, invoking their
* {@link org.apache.commons.net.ProtocolCommandListener#protocolReplyReceived protocolReplyReceived() } * {@link ProtocolCommandListener#protocolReplyReceived protocolReplyReceived() }
* methods. * methods.
* *
* @param replyCode The integer code indicating the natureof the reply. * @param replyCode The integer code indicating the natureof the reply.

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net; package aria.apache.commons.net;
import java.io.Closeable; import java.io.Closeable;
import java.io.IOException; import java.io.IOException;
@ -119,7 +119,7 @@ public abstract class SocketClient {
* _socket_ to null, _timeout_ to 0, _defaultPort to 0, * _socket_ to null, _timeout_ to 0, _defaultPort to 0,
* _isConnected_ to false, charset to {@code Charset.defaultCharset()} * _isConnected_ to false, charset to {@code Charset.defaultCharset()}
* and _socketFactory_ to a shared instance of * and _socketFactory_ to a shared instance of
* {@link org.apache.commons.net.DefaultSocketFactory}. * {@link DefaultSocketFactory}.
*/ */
public SocketClient() { public SocketClient() {
_socket_ = null; _socket_ = null;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
/** /**
* This interface adds the aspect of configurability by means of * This interface adds the aspect of configurability by means of

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.BufferedWriter; import java.io.BufferedWriter;
@ -30,21 +30,21 @@ import java.net.SocketException;
import java.net.SocketTimeoutException; import java.net.SocketTimeoutException;
import java.util.ArrayList; import java.util.ArrayList;
import org.apache.commons.net.MalformedServerReplyException; import aria.apache.commons.net.MalformedServerReplyException;
import org.apache.commons.net.ProtocolCommandSupport; import aria.apache.commons.net.ProtocolCommandSupport;
import org.apache.commons.net.SocketClient; import aria.apache.commons.net.SocketClient;
import org.apache.commons.net.io.CRLFLineReader; import aria.apache.commons.net.io.CRLFLineReader;
/*** /***
* FTP provides the basic the functionality necessary to implement your * FTP provides the basic the functionality necessary to implement your
* own FTP client. It extends org.apache.commons.net.SocketClient since * own FTP client. It extends SocketClient since
* extending TelnetClient was causing unwanted behavior (like connections * extending TelnetClient was causing unwanted behavior (like connections
* that did not time out properly). * that did not time out properly).
* <p> * <p>
* To derive the full benefits of the FTP class requires some knowledge * To derive the full benefits of the FTP class requires some knowledge
* of the FTP protocol defined in RFC 959. However, there is no reason * of the FTP protocol defined in RFC 959. However, there is no reason
* why you should have to use the FTP class. The * why you should have to use the FTP class. The
* {@link org.apache.commons.net.ftp.FTPClient} class, * {@link FTPClient} class,
* derived from FTP, * derived from FTP,
* implements all the functionality required of an FTP client. The * implements all the functionality required of an FTP client. The
* FTP class is made public to provide access to various FTP constants * FTP class is made public to provide access to various FTP constants
@ -57,16 +57,16 @@ import org.apache.commons.net.io.CRLFLineReader;
* close a connection if the client has been idle for longer than a * close a connection if the client has been idle for longer than a
* given time period (usually 900 seconds). The FTP class will detect a * given time period (usually 900 seconds). The FTP class will detect a
* premature FTP server connection closing when it receives a * premature FTP server connection closing when it receives a
* {@link org.apache.commons.net.ftp.FTPReply#SERVICE_NOT_AVAILABLE FTPReply.SERVICE_NOT_AVAILABLE } * {@link FTPReply#SERVICE_NOT_AVAILABLE FTPReply.SERVICE_NOT_AVAILABLE }
* response to a command. * response to a command.
* When that occurs, the FTP class method encountering that reply will throw * When that occurs, the FTP class method encountering that reply will throw
* an {@link org.apache.commons.net.ftp.FTPConnectionClosedException} * an {@link FTPConnectionClosedException}
* . <code>FTPConectionClosedException</code> * . <code>FTPConectionClosedException</code>
* is a subclass of <code> IOException </code> and therefore need not be * is a subclass of <code> IOException </code> and therefore need not be
* caught separately, but if you are going to catch it separately, its * caught separately, but if you are going to catch it separately, its
* catch block must appear before the more general <code> IOException </code> * catch block must appear before the more general <code> IOException </code>
* catch block. When you encounter an * catch block. When you encounter an
* {@link org.apache.commons.net.ftp.FTPConnectionClosedException} * {@link FTPConnectionClosedException}
* , you must disconnect the connection with * , you must disconnect the connection with
* {@link #disconnect disconnect() } to properly clean up the * {@link #disconnect disconnect() } to properly clean up the
* system resources used by FTP. Before disconnecting, you may check the * system resources used by FTP. Before disconnecting, you may check the
@ -80,7 +80,7 @@ import org.apache.commons.net.io.CRLFLineReader;
* Rather than list it separately for each method, we mention here that * Rather than list it separately for each method, we mention here that
* every method communicating with the server and throwing an IOException * every method communicating with the server and throwing an IOException
* can also throw a * can also throw a
* {@link org.apache.commons.net.MalformedServerReplyException} * {@link MalformedServerReplyException}
* , which is a subclass * , which is a subclass
* of IOException. A MalformedServerReplyException will be thrown when * of IOException. A MalformedServerReplyException will be thrown when
* the reply received from the server deviates enough from the protocol * the reply received from the server deviates enough from the protocol
@ -89,7 +89,7 @@ import org.apache.commons.net.io.CRLFLineReader;
* *
* @see FTPClient * @see FTPClient
* @see FTPConnectionClosedException * @see FTPConnectionClosedException
* @see org.apache.commons.net.MalformedServerReplyException * @see MalformedServerReplyException
* @version $Id: FTP.java 1782546 2017-02-11 00:05:41Z sebb $ * @version $Id: FTP.java 1782546 2017-02-11 00:05:41Z sebb $
***/ ***/
@ -1105,7 +1105,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP RETR command to the server, * A convenience method to send the FTP RETR command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* *
* @param pathname The pathname of the file to retrieve. * @param pathname The pathname of the file to retrieve.
@ -1126,7 +1126,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP STOR command to the server, * A convenience method to send the FTP STOR command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* *
* @param pathname The pathname to use for the file when stored at * @param pathname The pathname to use for the file when stored at
@ -1148,7 +1148,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP STOU command to the server, * A convenience method to send the FTP STOU command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* *
* @return The reply code received from the server. * @return The reply code received from the server.
@ -1168,7 +1168,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP STOU command to the server, * A convenience method to send the FTP STOU command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* @param pathname The base pathname to use for the file when stored at * @param pathname The base pathname to use for the file when stored at
* the remote end of the transfer. Some FTP servers * the remote end of the transfer. Some FTP servers
@ -1190,7 +1190,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP APPE command to the server, * A convenience method to send the FTP APPE command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* *
* @param pathname The pathname to use for the file when stored at * @param pathname The pathname to use for the file when stored at
@ -1418,7 +1418,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP LIST command to the server, * A convenience method to send the FTP LIST command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* *
* @return The reply code received from the server. * @return The reply code received from the server.
@ -1438,7 +1438,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP LIST command to the server, * A convenience method to send the FTP LIST command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* *
* @param pathname The pathname to list, * @param pathname The pathname to list,
@ -1460,7 +1460,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP MLSD command to the server, * A convenience method to send the FTP MLSD command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* *
* @return The reply code received from the server. * @return The reply code received from the server.
@ -1481,7 +1481,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP MLSD command to the server, * A convenience method to send the FTP MLSD command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* *
* @param path the path to report on * @param path the path to report on
@ -1504,7 +1504,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP MLST command to the server, * A convenience method to send the FTP MLST command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* *
* @return The reply code received from the server. * @return The reply code received from the server.
@ -1525,7 +1525,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP MLST command to the server, * A convenience method to send the FTP MLST command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* *
* @param path the path to report on * @param path the path to report on
@ -1548,7 +1548,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP NLST command to the server, * A convenience method to send the FTP NLST command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* *
* @return The reply code received from the server. * @return The reply code received from the server.
@ -1568,7 +1568,7 @@ public class FTP extends SocketClient {
* A convenience method to send the FTP NLST command to the server, * A convenience method to send the FTP NLST command to the server,
* receive the reply, and return the reply code. Remember, it is up * receive the reply, and return the reply code. Remember, it is up
* to you to manage the data connection. If you don't need this low * to you to manage the data connection. If you don't need this low
* level of access, use {@link org.apache.commons.net.ftp.FTPClient} * level of access, use {@link FTPClient}
* , which will handle all low level details for you. * , which will handle all low level details for you.
* *
* @param pathname The pathname to list, * @param pathname The pathname to list,

@ -14,8 +14,19 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import aria.apache.commons.net.SocketClient;
import aria.apache.commons.net.ftp.parser.ParserInitializationException;
import aria.apache.commons.net.io.CopyStreamAdapter;
import aria.apache.commons.net.io.CopyStreamEvent;
import aria.apache.commons.net.io.CopyStreamException;
import aria.apache.commons.net.io.CopyStreamListener;
import aria.apache.commons.net.io.FromNetASCIIInputStream;
import aria.apache.commons.net.io.SocketInputStream;
import aria.apache.commons.net.io.SocketOutputStream;
import aria.apache.commons.net.io.ToNetASCIIOutputStream;
import aria.apache.commons.net.io.Util;
import java.io.BufferedInputStream; import java.io.BufferedInputStream;
import java.io.BufferedOutputStream; import java.io.BufferedOutputStream;
import java.io.BufferedReader; import java.io.BufferedReader;
@ -42,28 +53,22 @@ import java.util.Properties;
import java.util.Random; import java.util.Random;
import java.util.Set; import java.util.Set;
import org.apache.commons.net.MalformedServerReplyException; import aria.apache.commons.net.MalformedServerReplyException;
import org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory; import aria.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory;
import org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory; import aria.apache.commons.net.ftp.parser.FTPFileEntryParserFactory;
import org.apache.commons.net.ftp.parser.MLSxEntryParser; import aria.apache.commons.net.ftp.parser.MLSxEntryParser;
import org.apache.commons.net.io.CRLFLineReader; import aria.apache.commons.net.io.CRLFLineReader;
import org.apache.commons.net.io.CopyStreamAdapter;
import org.apache.commons.net.io.CopyStreamEvent;
import org.apache.commons.net.io.CopyStreamListener;
import org.apache.commons.net.io.FromNetASCIIInputStream;
import org.apache.commons.net.io.ToNetASCIIOutputStream;
import org.apache.commons.net.io.Util;
/** /**
* FTPClient encapsulates all the functionality necessary to store and * FTPClient encapsulates all the functionality necessary to store and
* retrieve files from an FTP server. This class takes care of all * retrieve files from an FTP server. This class takes care of all
* low level details of interacting with an FTP server and provides * low level details of interacting with an FTP server and provides
* a convenient higher level interface. As with all classes derived * a convenient higher level interface. As with all classes derived
* from {@link org.apache.commons.net.SocketClient}, * from {@link SocketClient},
* you must first connect to the server with * you must first connect to the server with
* {@link org.apache.commons.net.SocketClient#connect connect } * {@link SocketClient#connect connect }
* before doing anything, and finally * before doing anything, and finally
* {@link org.apache.commons.net.SocketClient#disconnect disconnect } * {@link SocketClient#disconnect disconnect }
* after you're completely finished interacting with the server. * after you're completely finished interacting with the server.
* Then you need to check the FTP reply code to see if the connection * Then you need to check the FTP reply code to see if the connection
* was successful. For example: * was successful. For example:
@ -162,14 +167,14 @@ import org.apache.commons.net.io.Util;
* {@link FTPReply#SERVICE_NOT_AVAILABLE FTPReply.SERVICE_NOT_AVAILABLE } * {@link FTPReply#SERVICE_NOT_AVAILABLE FTPReply.SERVICE_NOT_AVAILABLE }
* response to a command. * response to a command.
* When that occurs, the FTP class method encountering that reply will throw * When that occurs, the FTP class method encountering that reply will throw
* an {@link org.apache.commons.net.ftp.FTPConnectionClosedException} * an {@link FTPConnectionClosedException}
* . * .
* <code>FTPConnectionClosedException</code> * <code>FTPConnectionClosedException</code>
* is a subclass of <code> IOException </code> and therefore need not be * is a subclass of <code> IOException </code> and therefore need not be
* caught separately, but if you are going to catch it separately, its * caught separately, but if you are going to catch it separately, its
* catch block must appear before the more general <code> IOException </code> * catch block must appear before the more general <code> IOException </code>
* catch block. When you encounter an * catch block. When you encounter an
* {@link org.apache.commons.net.ftp.FTPConnectionClosedException} * {@link FTPConnectionClosedException}
* , you must disconnect the connection with * , you must disconnect the connection with
* {@link #disconnect disconnect() } to properly clean up the * {@link #disconnect disconnect() } to properly clean up the
* system resources used by FTPClient. Before disconnecting, you may check the * system resources used by FTPClient. Before disconnecting, you may check the
@ -184,7 +189,7 @@ import org.apache.commons.net.io.Util;
* Rather than list it separately for each method, we mention here that * Rather than list it separately for each method, we mention here that
* every method communicating with the server and throwing an IOException * every method communicating with the server and throwing an IOException
* can also throw a * can also throw a
* {@link org.apache.commons.net.MalformedServerReplyException} * {@link MalformedServerReplyException}
* , which is a subclass * , which is a subclass
* of IOException. A MalformedServerReplyException will be thrown when * of IOException. A MalformedServerReplyException will be thrown when
* the reply received from the server deviates enough from the protocol * the reply received from the server deviates enough from the protocol
@ -291,7 +296,7 @@ import org.apache.commons.net.io.Util;
* @see FTPFileEntryParserFactory * @see FTPFileEntryParserFactory
* @see DefaultFTPFileEntryParserFactory * @see DefaultFTPFileEntryParserFactory
* @see FTPClientConfig * @see FTPClientConfig
* @see org.apache.commons.net.MalformedServerReplyException * @see MalformedServerReplyException
*/ */
public class FTPClient extends FTP implements Configurable { public class FTPClient extends FTP implements Configurable {
/** /**
@ -320,7 +325,7 @@ public class FTPClient extends FTP implements Configurable {
* For example: * For example:
* <pre> * <pre>
* Plan 9=Unix * Plan 9=Unix
* OS410=org.apache.commons.net.ftp.parser.OS400FTPEntryParser * OS410=OS400FTPEntryParser
* </pre> * </pre>
* *
* @since 3.0 * @since 3.0
@ -713,7 +718,7 @@ public class FTPClient extends FTP implements Configurable {
} else { } else {
output = socket.getOutputStream(); output = socket.getOutputStream();
} }
return new org.apache.commons.net.io.SocketOutputStream(socket, output); return new SocketOutputStream(socket, output);
} }
/** /**
@ -1757,7 +1762,7 @@ public class FTPClient extends FTP implements Configurable {
* of the client being idle or some other reason causing the server * of the client being idle or some other reason causing the server
* to send FTP reply code 421. This exception may be caught either * to send FTP reply code 421. This exception may be caught either
* as an IOException or independently as itself. * as an IOException or independently as itself.
* @throws org.apache.commons.net.io.CopyStreamException If an I/O error occurs while actually * @throws CopyStreamException If an I/O error occurs while actually
* transferring the file. The CopyStreamException allows you to * transferring the file. The CopyStreamException allows you to
* determine the number of bytes transferred and the IOException * determine the number of bytes transferred and the IOException
* causing the error. This exception may be caught either * causing the error. This exception may be caught either
@ -1874,7 +1879,7 @@ public class FTPClient extends FTP implements Configurable {
} else { } else {
input = socket.getInputStream(); input = socket.getInputStream();
} }
return new org.apache.commons.net.io.SocketInputStream(socket, input); return new SocketInputStream(socket, input);
} }
/** /**
@ -1892,7 +1897,7 @@ public class FTPClient extends FTP implements Configurable {
* of the client being idle or some other reason causing the server * of the client being idle or some other reason causing the server
* to send FTP reply code 421. This exception may be caught either * to send FTP reply code 421. This exception may be caught either
* as an IOException or independently as itself. * as an IOException or independently as itself.
* @throws org.apache.commons.net.io.CopyStreamException If an I/O error occurs while actually * @throws CopyStreamException If an I/O error occurs while actually
* transferring the file. The CopyStreamException allows you to * transferring the file. The CopyStreamException allows you to
* determine the number of bytes transferred and the IOException * determine the number of bytes transferred and the IOException
* causing the error. This exception may be caught either * causing the error. This exception may be caught either
@ -1965,7 +1970,7 @@ public class FTPClient extends FTP implements Configurable {
* of the client being idle or some other reason causing the server * of the client being idle or some other reason causing the server
* to send FTP reply code 421. This exception may be caught either * to send FTP reply code 421. This exception may be caught either
* as an IOException or independently as itself. * as an IOException or independently as itself.
* @throws org.apache.commons.net.io.CopyStreamException If an I/O error occurs while actually * @throws CopyStreamException If an I/O error occurs while actually
* transferring the file. The CopyStreamException allows you to * transferring the file. The CopyStreamException allows you to
* determine the number of bytes transferred and the IOException * determine the number of bytes transferred and the IOException
* causing the error. This exception may be caught either * causing the error. This exception may be caught either
@ -2026,7 +2031,7 @@ public class FTPClient extends FTP implements Configurable {
* of the client being idle or some other reason causing the server * of the client being idle or some other reason causing the server
* to send FTP reply code 421. This exception may be caught either * to send FTP reply code 421. This exception may be caught either
* as an IOException or independently as itself. * as an IOException or independently as itself.
* @throws org.apache.commons.net.io.CopyStreamException If an I/O error occurs while actually * @throws CopyStreamException If an I/O error occurs while actually
* transferring the file. The CopyStreamException allows you to * transferring the file. The CopyStreamException allows you to
* determine the number of bytes transferred and the IOException * determine the number of bytes transferred and the IOException
* causing the error. This exception may be caught either * causing the error. This exception may be caught either
@ -2087,7 +2092,7 @@ public class FTPClient extends FTP implements Configurable {
* of the client being idle or some other reason causing the server * of the client being idle or some other reason causing the server
* to send FTP reply code 421. This exception may be caught either * to send FTP reply code 421. This exception may be caught either
* as an IOException or independently as itself. * as an IOException or independently as itself.
* @throws org.apache.commons.net.io.CopyStreamException If an I/O error occurs while actually * @throws CopyStreamException If an I/O error occurs while actually
* transferring the file. The CopyStreamException allows you to * transferring the file. The CopyStreamException allows you to
* determine the number of bytes transferred and the IOException * determine the number of bytes transferred and the IOException
* causing the error. This exception may be caught either * causing the error. This exception may be caught either
@ -2826,7 +2831,7 @@ public class FTPClient extends FTP implements Configurable {
* @throws IOException If an I/O error occurs while either sending a * @throws IOException If an I/O error occurs while either sending a
* command to the server or receiving a reply * command to the server or receiving a reply
* from the server. * from the server.
* @throws org.apache.commons.net.ftp.parser.ParserInitializationException Thrown if the * @throws ParserInitializationException Thrown if the
* parserKey * parserKey
* parameter cannot be * parameter cannot be
* resolved by the selected parser factory. * resolved by the selected parser factory.
@ -2834,13 +2839,13 @@ public class FTPClient extends FTP implements Configurable {
* happen when parserKey is neither * happen when parserKey is neither
* the fully qualified class name of a class * the fully qualified class name of a class
* implementing the interface * implementing the interface
* org.apache.commons.net.ftp.FTPFileEntryParser * FTPFileEntryParser
* nor a string containing one of the recognized keys * nor a string containing one of the recognized keys
* mapping to such a parser or if class loader * mapping to such a parser or if class loader
* security issues prevent its being loaded. * security issues prevent its being loaded.
* @see DefaultFTPFileEntryParserFactory * @see DefaultFTPFileEntryParserFactory
* @see FTPFileEntryParserFactory * @see FTPFileEntryParserFactory
* @see org.apache.commons.net.ftp.FTPFileEntryParser * @see FTPFileEntryParser
*/ */
public FTPFile[] listFiles(String pathname) throws IOException { public FTPFile[] listFiles(String pathname) throws IOException {
FTPListParseEngine engine = initiateListParsing((String) null, pathname); FTPListParseEngine engine = initiateListParsing((String) null, pathname);
@ -2875,7 +2880,7 @@ public class FTPClient extends FTP implements Configurable {
* @throws IOException If an I/O error occurs while either sending a * @throws IOException If an I/O error occurs while either sending a
* command to the server or receiving a reply * command to the server or receiving a reply
* from the server. * from the server.
* @throws org.apache.commons.net.ftp.parser.ParserInitializationException Thrown if the * @throws ParserInitializationException Thrown if the
* parserKey * parserKey
* parameter cannot be * parameter cannot be
* resolved by the selected parser factory. * resolved by the selected parser factory.
@ -2883,13 +2888,13 @@ public class FTPClient extends FTP implements Configurable {
* happen when parserKey is neither * happen when parserKey is neither
* the fully qualified class name of a class * the fully qualified class name of a class
* implementing the interface * implementing the interface
* org.apache.commons.net.ftp.FTPFileEntryParser * FTPFileEntryParser
* nor a string containing one of the recognized keys * nor a string containing one of the recognized keys
* mapping to such a parser or if class loader * mapping to such a parser or if class loader
* security issues prevent its being loaded. * security issues prevent its being loaded.
* @see DefaultFTPFileEntryParserFactory * @see DefaultFTPFileEntryParserFactory
* @see FTPFileEntryParserFactory * @see FTPFileEntryParserFactory
* @see org.apache.commons.net.ftp.FTPFileEntryParser * @see FTPFileEntryParser
*/ */
public FTPFile[] listFiles() throws IOException { public FTPFile[] listFiles() throws IOException {
return listFiles((String) null); return listFiles((String) null);
@ -2934,7 +2939,7 @@ public class FTPClient extends FTP implements Configurable {
* @throws IOException If an I/O error occurs while either sending a * @throws IOException If an I/O error occurs while either sending a
* command to the server or receiving a reply * command to the server or receiving a reply
* from the server. * from the server.
* @throws org.apache.commons.net.ftp.parser.ParserInitializationException Thrown if the * @throws ParserInitializationException Thrown if the
* parserKey * parserKey
* parameter cannot be * parameter cannot be
* resolved by the selected parser factory. * resolved by the selected parser factory.
@ -2942,13 +2947,13 @@ public class FTPClient extends FTP implements Configurable {
* happen when parserKey is neither * happen when parserKey is neither
* the fully qualified class name of a class * the fully qualified class name of a class
* implementing the interface * implementing the interface
* org.apache.commons.net.ftp.FTPFileEntryParser * FTPFileEntryParser
* nor a string containing one of the recognized keys * nor a string containing one of the recognized keys
* mapping to such a parser or if class loader * mapping to such a parser or if class loader
* security issues prevent its being loaded. * security issues prevent its being loaded.
* @see DefaultFTPFileEntryParserFactory * @see DefaultFTPFileEntryParserFactory
* @see FTPFileEntryParserFactory * @see FTPFileEntryParserFactory
* @see org.apache.commons.net.ftp.FTPFileEntryParser * @see FTPFileEntryParser
* @since 3.0 * @since 3.0
*/ */
public FTPFile[] listDirectories() throws IOException { public FTPFile[] listDirectories() throws IOException {
@ -2980,7 +2985,7 @@ public class FTPClient extends FTP implements Configurable {
* @throws IOException If an I/O error occurs while either sending a * @throws IOException If an I/O error occurs while either sending a
* command to the server or receiving a reply * command to the server or receiving a reply
* from the server. * from the server.
* @throws org.apache.commons.net.ftp.parser.ParserInitializationException Thrown if the * @throws ParserInitializationException Thrown if the
* parserKey * parserKey
* parameter cannot be * parameter cannot be
* resolved by the selected parser factory. * resolved by the selected parser factory.
@ -2988,13 +2993,13 @@ public class FTPClient extends FTP implements Configurable {
* happen when parserKey is neither * happen when parserKey is neither
* the fully qualified class name of a class * the fully qualified class name of a class
* implementing the interface * implementing the interface
* org.apache.commons.net.ftp.FTPFileEntryParser * FTPFileEntryParser
* nor a string containing one of the recognized keys * nor a string containing one of the recognized keys
* mapping to such a parser or if class loader * mapping to such a parser or if class loader
* security issues prevent its being loaded. * security issues prevent its being loaded.
* @see DefaultFTPFileEntryParserFactory * @see DefaultFTPFileEntryParserFactory
* @see FTPFileEntryParserFactory * @see FTPFileEntryParserFactory
* @see org.apache.commons.net.ftp.FTPFileEntryParser * @see FTPFileEntryParser
* @since 3.0 * @since 3.0
*/ */
public FTPFile[] listDirectories(String parent) throws IOException { public FTPFile[] listDirectories(String parent) throws IOException {
@ -3027,7 +3032,7 @@ public class FTPClient extends FTP implements Configurable {
* as an IOException or independently as itself. * as an IOException or independently as itself.
* @throws IOException If an I/O error occurs while either sending a * @throws IOException If an I/O error occurs while either sending a
* command to the server or receiving a reply from the server. * command to the server or receiving a reply from the server.
* @throws org.apache.commons.net.ftp.parser.ParserInitializationException Thrown if the * @throws ParserInitializationException Thrown if the
* autodetect mechanism cannot * autodetect mechanism cannot
* resolve the type of system we are connected with. * resolve the type of system we are connected with.
* @see FTPListParseEngine * @see FTPListParseEngine
@ -3079,7 +3084,7 @@ public class FTPClient extends FTP implements Configurable {
* as an IOException or independently as itself. * as an IOException or independently as itself.
* @throws IOException If an I/O error occurs while either sending a * @throws IOException If an I/O error occurs while either sending a
* command to the server or receiving a reply from the server. * command to the server or receiving a reply from the server.
* @throws org.apache.commons.net.ftp.parser.ParserInitializationException Thrown if the * @throws ParserInitializationException Thrown if the
* autodetect mechanism cannot * autodetect mechanism cannot
* resolve the type of system we are connected with. * resolve the type of system we are connected with.
* @see FTPListParseEngine * @see FTPListParseEngine
@ -3127,7 +3132,7 @@ public class FTPClient extends FTP implements Configurable {
* as an IOException or independently as itself. * as an IOException or independently as itself.
* @throws IOException If an I/O error occurs while either sending a * @throws IOException If an I/O error occurs while either sending a
* command to the server or receiving a reply from the server. * command to the server or receiving a reply from the server.
* @throws org.apache.commons.net.ftp.parser.ParserInitializationException Thrown if the * @throws ParserInitializationException Thrown if the
* parserKey * parserKey
* parameter cannot be * parameter cannot be
* resolved by the selected parser factory. * resolved by the selected parser factory.
@ -3135,7 +3140,7 @@ public class FTPClient extends FTP implements Configurable {
* happen when parserKey is neither * happen when parserKey is neither
* the fully qualified class name of a class * the fully qualified class name of a class
* implementing the interface * implementing the interface
* org.apache.commons.net.ftp.FTPFileEntryParser * FTPFileEntryParser
* nor a string containing one of the recognized keys * nor a string containing one of the recognized keys
* mapping to such a parser or if class loader * mapping to such a parser or if class loader
* security issues prevent its being loaded. * security issues prevent its being loaded.

@ -15,8 +15,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import aria.apache.commons.net.ftp.parser.ConfigurableFTPFileEntryParserImpl;
import aria.apache.commons.net.ftp.parser.FTPTimestampParserImpl;
import java.text.DateFormatSymbols; import java.text.DateFormatSymbols;
import java.util.Collection; import java.util.Collection;
import java.util.Locale; import java.util.Locale;
@ -131,8 +133,8 @@ import java.util.TreeMap;
* *
* @see Configurable * @see Configurable
* @see FTPClient * @see FTPClient
* @see org.apache.commons.net.ftp.parser.FTPTimestampParserImpl#configure(FTPClientConfig) * @see FTPTimestampParserImpl#configure(FTPClientConfig)
* @see org.apache.commons.net.ftp.parser.ConfigurableFTPFileEntryParserImpl * @see ConfigurableFTPFileEntryParserImpl
* @since 1.4 * @since 1.4
*/ */
public class FTPClientConfig { public class FTPClientConfig {

@ -16,7 +16,7 @@
* *
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
/** /**
* @since 3.3 * @since 3.3

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
/** /**
* FTPCommand stores a set of constants for FTP command codes. To interpret * FTPCommand stores a set of constants for FTP command codes. To interpret

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import java.io.IOException; import java.io.IOException;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import java.io.Serializable; import java.io.Serializable;
import java.util.Calendar; import java.util.Calendar;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;

@ -16,7 +16,7 @@
* *
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
/** /**
* Perform filtering on FTPFile entries. * Perform filtering on FTPFile entries.

@ -16,7 +16,7 @@
* *
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
/** /**
* Implements some simple FTPFileFilter classes. * Implements some simple FTPFileFilter classes.

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
@ -30,7 +30,7 @@ import java.net.SocketException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.apache.commons.net.util.Base64; import aria.apache.commons.net.util.Base64;
/** /**
* Experimental attempt at FTP client that tunnels over an HTTP proxy connection. * Experimental attempt at FTP client that tunnels over an HTTP proxy connection.

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
@ -27,7 +27,7 @@ import java.util.LinkedList;
import java.util.List; import java.util.List;
import java.util.ListIterator; import java.util.ListIterator;
import org.apache.commons.net.util.Charsets; import aria.apache.commons.net.util.Charsets;
/** /**
* This class handles the entire process of parsing a listing of * This class handles the entire process of parsing a listing of

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
/*** /***
* FTPReply stores a set of constants for FTP reply codes. To interpret * FTPReply stores a set of constants for FTP reply codes. To interpret

@ -15,8 +15,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import aria.apache.commons.net.SocketClient;
import aria.apache.commons.net.util.KeyManagerUtils;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.BufferedWriter; import java.io.BufferedWriter;
import java.io.IOException; import java.io.IOException;
@ -33,10 +35,10 @@ import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory; import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManager; import javax.net.ssl.TrustManager;
import org.apache.commons.net.util.Base64; import aria.apache.commons.net.util.Base64;
import org.apache.commons.net.util.SSLContextUtils; import aria.apache.commons.net.util.SSLContextUtils;
import org.apache.commons.net.util.SSLSocketUtils; import aria.apache.commons.net.util.SSLSocketUtils;
import org.apache.commons.net.util.TrustManagerUtils; import aria.apache.commons.net.util.TrustManagerUtils;
/** /**
* FTP over SSL processing. If desired, the JVM property -Djavax.net.debug=all can be used to * FTP over SSL processing. If desired, the JVM property -Djavax.net.debug=all can be used to
@ -219,7 +221,7 @@ public class FTPSClient extends FTPClient {
* rather than reimplementing all of the connect() methods. * rather than reimplementing all of the connect() methods.
* *
* @throws IOException If it throw by _connectAction_. * @throws IOException If it throw by _connectAction_.
* @see org.apache.commons.net.SocketClient#_connectAction_() * @see SocketClient#_connectAction_()
*/ */
@Override protected void _connectAction_() throws IOException { @Override protected void _connectAction_() throws IOException {
// Implicit mode. // Implicit mode.
@ -324,7 +326,7 @@ public class FTPSClient extends FTPClient {
* Set a {@link KeyManager} to use * Set a {@link KeyManager} to use
* *
* @param keyManager The KeyManager implementation to set. * @param keyManager The KeyManager implementation to set.
* @see org.apache.commons.net.util.KeyManagerUtils * @see KeyManagerUtils
*/ */
public void setKeyManager(KeyManager keyManager) { public void setKeyManager(KeyManager keyManager) {
this.keyManager = keyManager; this.keyManager = keyManager;
@ -697,7 +699,7 @@ public class FTPSClient extends FTPClient {
* the default TrustManager from the JVM will be used. * the default TrustManager from the JVM will be used.
* *
* @param trustManager The TrustManager implementation to set, may be {@code null} * @param trustManager The TrustManager implementation to set, may be {@code null}
* @see org.apache.commons.net.util.TrustManagerUtils * @see TrustManagerUtils
*/ */
public void setTrustManager(TrustManager trustManager) { public void setTrustManager(TrustManager trustManager) {
this.trustManager = trustManager; this.trustManager = trustManager;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
/** /**
* FTPS-specific commands. * FTPS-specific commands.

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import java.io.IOException; import java.io.IOException;
import java.net.InetAddress; import java.net.InetAddress;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import java.io.IOException; import java.io.IOException;
import java.net.InetAddress; import java.net.InetAddress;

@ -15,8 +15,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import aria.apache.commons.net.util.TrustManagerUtils;
import java.security.cert.CertificateException; import java.security.cert.CertificateException;
import java.security.cert.X509Certificate; import java.security.cert.X509Certificate;
@ -27,7 +28,7 @@ import javax.net.ssl.X509TrustManager;
* *
* @since 2.0 * @since 2.0
* @deprecated 3.0 use * @deprecated 3.0 use
* {@link org.apache.commons.net.util.TrustManagerUtils#getValidateServerCertificateTrustManager() * {@link TrustManagerUtils#getValidateServerCertificateTrustManager()
* TrustManagerUtils#getValidateServerCertificateTrustManager()} instead * TrustManagerUtils#getValidateServerCertificateTrustManager()} instead
*/ */
@Deprecated public class FTPSTrustManager implements X509TrustManager { @Deprecated public class FTPSTrustManager implements X509TrustManager {

@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;
import org.apache.commons.net.io.CopyStreamListener; import aria.apache.commons.net.io.CopyStreamListener;
/** /**
* Created by AriaL on 2017/9/26. * Created by AriaL on 2017/9/26.

@ -18,4 +18,4 @@
/** /**
* FTP and FTPS support classes * FTP and FTPS support classes
*/ */
package org.apache.commons.net.ftp; package aria.apache.commons.net.ftp;

@ -15,11 +15,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import org.apache.commons.net.ftp.FTPFile; import aria.apache.commons.net.ftp.FTPFile;
import org.apache.commons.net.ftp.FTPFileEntryParser; import aria.apache.commons.net.ftp.FTPFileEntryParser;
import org.apache.commons.net.ftp.FTPFileEntryParserImpl; import aria.apache.commons.net.ftp.FTPFileEntryParserImpl;
/** /**
* This implementation allows to pack some FileEntryParsers together * This implementation allows to pack some FileEntryParsers together

@ -15,14 +15,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.Configurable;
import aria.apache.commons.net.ftp.FTPClientConfig;
import java.text.ParseException; import java.text.ParseException;
import java.util.Calendar; import java.util.Calendar;
import org.apache.commons.net.ftp.Configurable;
import org.apache.commons.net.ftp.FTPClientConfig;
/** /**
* <p> * <p>
* This abstract class implements the common timestamp parsing * This abstract class implements the common timestamp parsing

@ -15,23 +15,23 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.Configurable;
import aria.apache.commons.net.ftp.FTPClient;
import aria.apache.commons.net.ftp.FTPClientConfig;
import aria.apache.commons.net.ftp.FTPFileEntryParser;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.commons.net.ftp.Configurable;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFileEntryParser;
/** /**
* This is the default implementation of the * This is the default implementation of the
* FTPFileEntryParserFactory interface. This is the * FTPFileEntryParserFactory interface. This is the
* implementation that will be used by * implementation that will be used by
* org.apache.commons.net.ftp.FTPClient.listFiles() * FTPClient.listFiles()
* if no other implementation has been specified. * if no other implementation has been specified.
* *
* @see org.apache.commons.net.ftp.FTPClient#listFiles * @see FTPClient#listFiles
* @see org.apache.commons.net.ftp.FTPClient#setParserFactory * @see FTPClient#setParserFactory
*/ */
public class DefaultFTPFileEntryParserFactory implements FTPFileEntryParserFactory { public class DefaultFTPFileEntryParserFactory implements FTPFileEntryParserFactory {
@ -104,7 +104,7 @@ public class DefaultFTPFileEntryParserFactory implements FTPFileEntryParserFacto
} catch (ClassCastException e) { } catch (ClassCastException e) {
throw new ParserInitializationException(parserClass.getName() throw new ParserInitializationException(parserClass.getName()
+ " does not implement the interface " + " does not implement the interface "
+ "org.apache.commons.net.ftp.FTPFileEntryParser.", e); + "FTPFileEntryParser.", e);
} catch (Exception e) { } catch (Exception e) {
throw new ParserInitializationException("Error initializing parser", e); throw new ParserInitializationException("Error initializing parser", e);
} catch (ExceptionInInitializerError e) { } catch (ExceptionInInitializerError e) {

@ -15,12 +15,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.FTPFile;
import aria.apache.commons.net.ftp.FTPFileEntryParser;
import java.util.Calendar; import java.util.Calendar;
import org.apache.commons.net.ftp.FTPFile;
/** /**
* Parser for the Connect Enterprise Unix FTP Server From Sterling Commerce. * Parser for the Connect Enterprise Unix FTP Server From Sterling Commerce.
* Here is a sample of the sort of output line this parser processes: * Here is a sample of the sort of output line this parser processes:
@ -32,8 +32,8 @@ import org.apache.commons.net.ftp.FTPFile;
* </B> * </B>
* *
* @version $Id: EnterpriseUnixFTPEntryParser.java 1741829 2016-05-01 00:24:44Z sebb $ * @version $Id: EnterpriseUnixFTPEntryParser.java 1741829 2016-05-01 00:24:44Z sebb $
* @see org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions) * @see FTPFileEntryParser FTPFileEntryParser (for usage instructions)
* @see org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory * @see DefaultFTPFileEntryParserFactory
*/ */
public class EnterpriseUnixFTPEntryParser extends RegexFTPFileEntryParserImpl { public class EnterpriseUnixFTPEntryParser extends RegexFTPFileEntryParserImpl {

@ -15,10 +15,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import org.apache.commons.net.ftp.FTPClientConfig; import aria.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFileEntryParser; import aria.apache.commons.net.ftp.FTPFileEntryParser;
/** /**
* The interface describes a factory for creating FTPFileEntryParsers. * The interface describes a factory for creating FTPFileEntryParsers.

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import java.text.ParseException; import java.text.ParseException;
import java.util.Calendar; import java.util.Calendar;

@ -15,8 +15,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.Configurable;
import aria.apache.commons.net.ftp.FTPClientConfig;
import java.text.DateFormatSymbols; import java.text.DateFormatSymbols;
import java.text.ParseException; import java.text.ParseException;
import java.text.ParsePosition; import java.text.ParsePosition;
@ -25,12 +27,9 @@ import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.TimeZone; import java.util.TimeZone;
import org.apache.commons.net.ftp.Configurable;
import org.apache.commons.net.ftp.FTPClientConfig;
/** /**
* Default implementation of the {@link FTPTimestampParser FTPTimestampParser} * Default implementation of the {@link FTPTimestampParser FTPTimestampParser}
* interface also implements the {@link org.apache.commons.net.ftp.Configurable Configurable} * interface also implements the {@link Configurable Configurable}
* interface to allow the parsing to be configured from the outside. * interface to allow the parsing to be configured from the outside.
* *
* @see ConfigurableFTPFileEntryParserImpl * @see ConfigurableFTPFileEntryParserImpl
@ -355,7 +354,7 @@ public class FTPTimestampParserImpl implements FTPTimestampParser, Configurable
* to parse timestamps.</li> * to parse timestamps.</li>
* <li>otherwise use default English month names</li> * <li>otherwise use default English month names</li>
* </ul><p> * </ul><p>
* Finally if a {@link org.apache.commons.net.ftp.FTPClientConfig#setServerTimeZoneId(String) * Finally if a {@link FTPClientConfig#setServerTimeZoneId(String)
* serverTimeZoneId} * serverTimeZoneId}
* has been supplied via the config, set that into all date formats that have * has been supplied via the config, set that into all date formats that have
* been configured. * been configured.

@ -15,8 +15,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.FTPFile;
import aria.apache.commons.net.ftp.FTPFileEntryParserImpl;
import java.text.ParsePosition; import java.text.ParsePosition;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Calendar; import java.util.Calendar;
@ -26,9 +28,6 @@ import java.util.HashMap;
import java.util.Locale; import java.util.Locale;
import java.util.TimeZone; import java.util.TimeZone;
import org.apache.commons.net.ftp.FTPFile;
import org.apache.commons.net.ftp.FTPFileEntryParserImpl;
/** /**
* Parser class for MSLT and MLSD replies. See RFC 3659. * Parser class for MSLT and MLSD replies. See RFC 3659.
* <p> * <p>

@ -15,20 +15,20 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.FTPClientConfig;
import aria.apache.commons.net.ftp.FTPFile;
import aria.apache.commons.net.ftp.FTPFileEntryParser;
import java.text.ParseException; import java.text.ParseException;
import java.util.List; import java.util.List;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFile;
/** /**
* Implementation of FTPFileEntryParser and FTPFileListParser for IBM zOS/MVS * Implementation of FTPFileEntryParser and FTPFileListParser for IBM zOS/MVS
* Systems. * Systems.
* *
* @version $Id: MVSFTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $ * @version $Id: MVSFTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $
* @see org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for * @see FTPFileEntryParser FTPFileEntryParser (for
* usage instructions) * usage instructions)
*/ */
public class MVSFTPEntryParser extends ConfigurableFTPFileEntryParserImpl { public class MVSFTPEntryParser extends ConfigurableFTPFileEntryParserImpl {

@ -15,18 +15,18 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.FTPClientConfig;
import aria.apache.commons.net.ftp.FTPFile;
import aria.apache.commons.net.ftp.FTPFileEntryParser;
import java.text.ParseException; import java.text.ParseException;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFile;
/** /**
* Implementation FTPFileEntryParser and FTPFileListParser for pre MacOS-X Systems. * Implementation FTPFileEntryParser and FTPFileListParser for pre MacOS-X Systems.
* *
* @version $Id: MacOsPeterFTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $ * @version $Id: MacOsPeterFTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $
* @see org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions) * @see FTPFileEntryParser FTPFileEntryParser (for usage instructions)
* @since 3.1 * @since 3.1
*/ */
public class public class

@ -15,20 +15,20 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.Configurable;
import aria.apache.commons.net.ftp.FTPClientConfig;
import aria.apache.commons.net.ftp.FTPFile;
import aria.apache.commons.net.ftp.FTPFileEntryParser;
import java.text.ParseException; import java.text.ParseException;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.commons.net.ftp.Configurable;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFile;
/** /**
* Implementation of FTPFileEntryParser and FTPFileListParser for NT Systems. * Implementation of FTPFileEntryParser and FTPFileListParser for NT Systems.
* *
* @version $Id: NTFTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $ * @version $Id: NTFTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $
* @see org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions) * @see FTPFileEntryParser FTPFileEntryParser (for usage instructions)
*/ */
public class NTFTPEntryParser extends ConfigurableFTPFileEntryParserImpl { public class NTFTPEntryParser extends ConfigurableFTPFileEntryParserImpl {

@ -15,13 +15,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.FTPClientConfig;
import aria.apache.commons.net.ftp.FTPFile;
import aria.apache.commons.net.ftp.FTPFileEntryParser;
import java.text.ParseException; import java.text.ParseException;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFile;
/** /**
* Implementation of FTPFileEntryParser and FTPFileListParser for Netware Systems. Note that some of * Implementation of FTPFileEntryParser and FTPFileListParser for Netware Systems. Note that some of
* the proprietary * the proprietary
@ -31,7 +31,7 @@ import org.apache.commons.net.ftp.FTPFile;
* for more details. * for more details.
* *
* @version $Id: NetwareFTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $ * @version $Id: NetwareFTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $
* @see org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions) * @see FTPFileEntryParser FTPFileEntryParser (for usage instructions)
* @since 1.5 * @since 1.5
*/ */
public class NetwareFTPEntryParser extends ConfigurableFTPFileEntryParserImpl { public class NetwareFTPEntryParser extends ConfigurableFTPFileEntryParserImpl {

@ -15,18 +15,18 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.FTPClientConfig;
import aria.apache.commons.net.ftp.FTPFile;
import aria.apache.commons.net.ftp.FTPFileEntryParser;
import java.text.ParseException; import java.text.ParseException;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFile;
/** /**
* Implementation of FTPFileEntryParser and FTPFileListParser for OS2 Systems. * Implementation of FTPFileEntryParser and FTPFileListParser for OS2 Systems.
* *
* @version $Id: OS2FTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $ * @version $Id: OS2FTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $
* @see org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions) * @see FTPFileEntryParser FTPFileEntryParser (for usage instructions)
*/ */
public class OS2FTPEntryParser extends ConfigurableFTPFileEntryParserImpl public class OS2FTPEntryParser extends ConfigurableFTPFileEntryParserImpl

@ -15,14 +15,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.FTPClientConfig;
import aria.apache.commons.net.ftp.FTPFile;
import java.io.File; import java.io.File;
import java.text.ParseException; import java.text.ParseException;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFile;
/** /**
* @version $Id: OS400FTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $ * @version $Id: OS400FTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $
* <pre> * <pre>

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
/** /**
* This class encapsulates all errors that may be thrown by * This class encapsulates all errors that may be thrown by

@ -15,15 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.FTPFileEntryParserImpl;
import java.util.regex.MatchResult; import java.util.regex.MatchResult;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException; import java.util.regex.PatternSyntaxException;
import org.apache.commons.net.ftp.FTPFileEntryParserImpl;
/** /**
* This abstract class implements both the older FTPFileListParser and * This abstract class implements both the older FTPFileListParser and
* newer FTPFileEntryParser interfaces with default functionality. * newer FTPFileEntryParser interfaces with default functionality.

@ -15,15 +15,15 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.FTPClientConfig;
import aria.apache.commons.net.ftp.FTPFile;
import aria.apache.commons.net.ftp.FTPFileEntryParser;
import java.text.ParseException; import java.text.ParseException;
import java.util.List; import java.util.List;
import java.util.ListIterator; import java.util.ListIterator;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFile;
/** /**
* Implementation FTPFileEntryParser and FTPFileListParser for standard * Implementation FTPFileEntryParser and FTPFileListParser for standard
* Unix Systems. * Unix Systems.
@ -33,7 +33,7 @@ import org.apache.commons.net.ftp.FTPFile;
* new FTPFileEntryParser interface. * new FTPFileEntryParser interface.
* *
* @version $Id: UnixFTPEntryParser.java 1781925 2017-02-06 16:43:40Z sebb $ * @version $Id: UnixFTPEntryParser.java 1781925 2017-02-06 16:43:40Z sebb $
* @see org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions) * @see FTPFileEntryParser FTPFileEntryParser (for usage instructions)
*/ */
public class UnixFTPEntryParser extends ConfigurableFTPFileEntryParserImpl { public class UnixFTPEntryParser extends ConfigurableFTPFileEntryParserImpl {

@ -15,16 +15,17 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.FTPClientConfig;
import aria.apache.commons.net.ftp.FTPFile;
import aria.apache.commons.net.ftp.FTPFileEntryParser;
import aria.apache.commons.net.ftp.FTPListParseEngine;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
import java.text.ParseException; import java.text.ParseException;
import java.util.StringTokenizer; import java.util.StringTokenizer;
import org.apache.commons.net.ftp.FTPClientConfig;
import org.apache.commons.net.ftp.FTPFile;
/** /**
* Implementation FTPFileEntryParser and FTPFileListParser for VMS Systems. * Implementation FTPFileEntryParser and FTPFileListParser for VMS Systems.
* This is a sample of VMS LIST output * This is a sample of VMS LIST output
@ -43,8 +44,8 @@ import org.apache.commons.net.ftp.FTPFile;
* <P> * <P>
* *
* @version $Id: VMSFTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $ * @version $Id: VMSFTPEntryParser.java 1752660 2016-07-14 13:25:39Z sebb $
* @see org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions) * @see FTPFileEntryParser FTPFileEntryParser (for usage instructions)
* @see org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory * @see DefaultFTPFileEntryParserFactory
*/ */
public class VMSFTPEntryParser extends ConfigurableFTPFileEntryParserImpl { public class VMSFTPEntryParser extends ConfigurableFTPFileEntryParserImpl {
@ -234,8 +235,8 @@ public class VMSFTPEntryParser extends ConfigurableFTPFileEntryParserImpl {
* @deprecated (2.2) No other FTPFileEntryParser implementations have this method. * @deprecated (2.2) No other FTPFileEntryParser implementations have this method.
*/ */
@Deprecated public FTPFile[] parseFileList(java.io.InputStream listStream) throws IOException { @Deprecated public FTPFile[] parseFileList(java.io.InputStream listStream) throws IOException {
org.apache.commons.net.ftp.FTPListParseEngine engine = FTPListParseEngine engine =
new org.apache.commons.net.ftp.FTPListParseEngine(this); new FTPListParseEngine(this);
engine.readServerList(listStream, null); engine.readServerList(listStream, null);
return engine.getFiles(); return engine.getFiles();
} }

@ -15,8 +15,10 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;
import aria.apache.commons.net.ftp.FTPClientConfig;
import aria.apache.commons.net.ftp.FTPFileEntryParser;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.ListIterator; import java.util.ListIterator;
@ -25,8 +27,6 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException; import java.util.regex.PatternSyntaxException;
import org.apache.commons.net.ftp.FTPClientConfig;
/** /**
* Special implementation VMSFTPEntryParser with versioning turned on. * Special implementation VMSFTPEntryParser with versioning turned on.
* This parser removes all duplicates and only leaves the version with the highest * This parser removes all duplicates and only leaves the version with the highest
@ -43,7 +43,7 @@ import org.apache.commons.net.ftp.FTPClientConfig;
* <P> * <P>
* *
* @version $Id: VMSVersioningFTPEntryParser.java 1747119 2016-06-07 02:22:24Z ggregory $ * @version $Id: VMSVersioningFTPEntryParser.java 1747119 2016-06-07 02:22:24Z ggregory $
* @see org.apache.commons.net.ftp.FTPFileEntryParser FTPFileEntryParser (for usage instructions) * @see FTPFileEntryParser FTPFileEntryParser (for usage instructions)
*/ */
public class VMSVersioningFTPEntryParser extends VMSFTPEntryParser { public class VMSVersioningFTPEntryParser extends VMSFTPEntryParser {

@ -18,4 +18,4 @@
/** /**
* FTP file listing parser classes * FTP file listing parser classes
*/ */
package org.apache.commons.net.ftp.parser; package aria.apache.commons.net.ftp.parser;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;

@ -15,11 +15,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.util.EventListener; import java.util.EventListener;
import org.apache.commons.net.util.ListenerList; import aria.apache.commons.net.util.ListenerList;
/** /**
* The CopyStreamAdapter will relay CopyStreamEvents to a list of listeners * The CopyStreamAdapter will relay CopyStreamEvents to a list of listeners

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.util.EventObject; import java.util.EventObject;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.io.IOException; import java.io.IOException;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.util.EventListener; import java.util.EventListener;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.io.IOException; import java.io.IOException;
import java.io.Writer; import java.io.Writer;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.io.FilterOutputStream; import java.io.FilterOutputStream;
import java.io.IOException; import java.io.IOException;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.io.FilterInputStream; import java.io.FilterInputStream;
import java.io.IOException; import java.io.IOException;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.io.FilterOutputStream; import java.io.FilterOutputStream;
import java.io.IOException; import java.io.IOException;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.io.FilterInputStream; import java.io.FilterInputStream;
import java.io.IOException; import java.io.IOException;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.io.FilterOutputStream; import java.io.FilterOutputStream;
import java.io.IOException; import java.io.IOException;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;
import java.io.Closeable; import java.io.Closeable;
import java.io.IOException; import java.io.IOException;

@ -18,4 +18,4 @@
/** /**
* Utility classes for IO support. * Utility classes for IO support.
*/ */
package org.apache.commons.net.io; package aria.apache.commons.net.io;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.util; package aria.apache.commons.net.util;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.math.BigInteger; import java.math.BigInteger;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.util; package aria.apache.commons.net.util;
import java.nio.charset.Charset; import java.nio.charset.Charset;

@ -16,8 +16,9 @@
* *
*/ */
package org.apache.commons.net.util; package aria.apache.commons.net.util;
import aria.apache.commons.net.io.Util;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.IOException; import java.io.IOException;
@ -34,8 +35,6 @@ import java.util.Enumeration;
import javax.net.ssl.KeyManager; import javax.net.ssl.KeyManager;
import javax.net.ssl.X509ExtendedKeyManager; import javax.net.ssl.X509ExtendedKeyManager;
import org.apache.commons.net.io.Util;
/** /**
* General KeyManager utilities * General KeyManager utilities
* <p> * <p>

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.util; package aria.apache.commons.net.util;
import java.io.Serializable; import java.io.Serializable;
import java.util.EventListener; import java.util.EventListener;

@ -16,7 +16,7 @@
* *
*/ */
package org.apache.commons.net.util; package aria.apache.commons.net.util;
import java.io.IOException; import java.io.IOException;
import java.security.GeneralSecurityException; import java.security.GeneralSecurityException;

@ -16,7 +16,7 @@
* *
*/ */
package org.apache.commons.net.util; package aria.apache.commons.net.util;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method; import java.lang.reflect.Method;

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.util; package aria.apache.commons.net.util;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;

@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.commons.net.util; package aria.apache.commons.net.util;
import java.security.GeneralSecurityException; import java.security.GeneralSecurityException;
import java.security.KeyStore; import java.security.KeyStore;

@ -18,4 +18,4 @@
/** /**
* Utility classes * Utility classes
*/ */
package org.apache.commons.net.util; package aria.apache.commons.net.util;

@ -8,6 +8,7 @@
... ...
} }
``` ```
- fix bug https://github.com/AriaLyy/Aria/issues/322
+ v_3.5.1 + v_3.5.1
- 优化`taskExists`方法 - 优化`taskExists`方法
- 添加`post`参数请求支持 - 添加`post`参数请求支持

@ -39,8 +39,8 @@ task clean(type: Delete) {
ext { ext {
userOrg = 'arialyy' userOrg = 'arialyy'
groupId = 'com.arialyy.aria' groupId = 'com.arialyy.aria'
publishVersion = '3.5.1' // publishVersion = '3.5.1'
// publishVersion = '1.0.3' //FTP插件 publishVersion = '1.0.4' //FTP插件
repoName='maven' repoName='maven'
desc = 'android 下载框架' desc = 'android 下载框架'
website = 'https://github.com/AriaLyy/Aria' website = 'https://github.com/AriaLyy/Aria'

@ -13,8 +13,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true # org.gradle.parallel=true
#Wed Dec 07 20:19:22 CST 2016 #Wed Dec 07 20:19:22 CST 2016
org.gradle.daemon=true #org.gradle.daemon=true
org.gradle.jvmargs=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 #org.gradle.jvmargs=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
# gradle proxy https://chaosleong.github.io/2017/02/10/Configuring-Gradle-Proxy/ # gradle proxy https://chaosleong.github.io/2017/02/10/Configuring-Gradle-Proxy/
#systemProp.socksProxyHost=127.0.0.1 #systemProp.socksProxyHost=127.0.0.1
#systemProp.socksProxyPort=60777 #systemProp.socksProxyPort=60777

Loading…
Cancel
Save