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 2012/07/16 17:24:07 UTC
svn commit: r1362089 -
/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
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