commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1084932 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java
Date Thu, 24 Mar 2011 12:34:48 GMT
Author: sebb
Date: Thu Mar 24 12:34:47 2011
New Revision: 1084932

URL: http://svn.apache.org/viewvc?rev=1084932&view=rev
Log:
Revert to previous behaviour of toString(), but remove explicit reference to raw format in
Javadoc.

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java?rev=1084932&r1=1084931&r2=1084932&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPFile.java Thu Mar
24 12:34:47 2011
@@ -367,7 +367,6 @@ public class FTPFile implements Serializ
         return _permissions[access][permission];
     }
 
-
     /***
      * Returns a string representation of the FTPFile information.
      *
@@ -376,6 +375,18 @@ public class FTPFile implements Serializ
     @Override
     public String toString()
     {
+        return getRawListing();
+    }
+
+    /***
+     * Returns a string representation of the FTPFile information.
+     * This currently mimics the Unix listing format.
+     *
+     * @return A string representation of the FTPFile information.
+     * @since 3.0
+     */
+    public String toFormattedString()
+    {
         StringBuilder sb = new StringBuilder();
         Formatter fmt = new Formatter(sb);
         sb.append(formatType());



Mime
View raw message