You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/08/16 20:15:41 UTC

[commons-vfs] 01/03: Sort members.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git

commit cb5325abc31c5e397b7113f2e0f6455eda2e654b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 16 11:56:06 2019 -0700

    Sort members.
---
 .../commons/vfs2/provider/ftp/FtpClient.java       | 128 ++++++++++-----------
 1 file changed, 64 insertions(+), 64 deletions(-)

diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpClient.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpClient.java
index 90c6c91..794e1ee 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpClient.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpClient.java
@@ -1,64 +1,64 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.commons.vfs2.provider.ftp;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-import org.apache.commons.net.ftp.FTPFile;
-import org.apache.commons.net.ftp.FTPReply;
-import org.apache.commons.vfs2.FileSystemException;
-
-/**
- * What VFS expects from an FTP client to provide.
- */
-public interface FtpClient {
-
-    boolean isConnected() throws FileSystemException;
-
-    void disconnect() throws IOException;
-
-    FTPFile[] listFiles(String relPath) throws IOException;
-
-    boolean removeDirectory(String relPath) throws IOException;
-
-    boolean deleteFile(String relPath) throws IOException;
-
-    boolean rename(String oldName, String newName) throws IOException;
-
-    boolean makeDirectory(String relPath) throws IOException;
-
-    boolean completePendingCommand() throws IOException;
-
-    InputStream retrieveFileStream(String relPath) throws IOException;
-
-    InputStream retrieveFileStream(String relPath, long restartOffset) throws IOException;
-
-    OutputStream appendFileStream(String relPath) throws IOException;
-
-    OutputStream storeFileStream(String relPath) throws IOException;
-
-    boolean abort() throws IOException;
-
-    String getReplyString() throws IOException;
-
-    default int getReplyCode() throws IOException {
-        return FTPReply.COMMAND_OK;
-    }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.vfs2.provider.ftp;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+
+import org.apache.commons.net.ftp.FTPFile;
+import org.apache.commons.net.ftp.FTPReply;
+import org.apache.commons.vfs2.FileSystemException;
+
+/**
+ * What VFS expects from an FTP client to provide.
+ */
+public interface FtpClient {
+
+    boolean abort() throws IOException;
+
+    OutputStream appendFileStream(String relPath) throws IOException;
+
+    boolean completePendingCommand() throws IOException;
+
+    boolean deleteFile(String relPath) throws IOException;
+
+    void disconnect() throws IOException;
+
+    default int getReplyCode() throws IOException {
+        return FTPReply.COMMAND_OK;
+    }
+
+    String getReplyString() throws IOException;
+
+    boolean isConnected() throws FileSystemException;
+
+    FTPFile[] listFiles(String relPath) throws IOException;
+
+    boolean makeDirectory(String relPath) throws IOException;
+
+    boolean removeDirectory(String relPath) throws IOException;
+
+    boolean rename(String oldName, String newName) throws IOException;
+
+    InputStream retrieveFileStream(String relPath) throws IOException;
+
+    InputStream retrieveFileStream(String relPath, long restartOffset) throws IOException;
+
+    OutputStream storeFileStream(String relPath) throws IOException;
+
+}