commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1362089 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
Date Mon, 16 Jul 2012 15:24:07 GMT
Author: ggregory
Date: Mon Jul 16 15:24:07 2012
New Revision: 1362089

URL: http://svn.apache.org/viewvc?rev=1362089&view=rev
Log:
Checkstyle fixes.

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java?rev=1362089&r1=1362088&r2=1362089&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
Mon Jul 16 15:24:07 2012
@@ -47,14 +47,14 @@ public final class DefaultFileContent im
     static final int STATE_RANDOM_ACCESS = 3;
     */
 
+    static final int STATE_CLOSED = 0;
+    static final int STATE_OPENED = 1;
+
     /**
      * The default buffer size for {@link #write(OutputStream)}
      */
     private static final int WRITE_BUFFER_SIZE = 4096;
 
-    static final int STATE_CLOSED = 0;
-    static final int STATE_OPENED = 1;
-
     private final AbstractFileObject fileObject;
     private Map<String, Object> attrs;
     private Map<String, Object> roAttrs;
@@ -765,6 +765,7 @@ public final class DefaultFileContent im
      *
      * @param file
      *            The target FileObject.
+     * @return the total number of bytes written
      * @throws IOException
      *             if an error occurs writing the content.
      * @since 2.1



Mime
View raw message