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
The following commit(s) were added to refs/heads/master by this push:
new c6e445b Sort methods.
c6e445b is described below
commit c6e445bdec880f73f144c9d53815e1f37283940b
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jul 3 13:27:39 2019 -0400
Sort methods.
---
.../commons/vfs2/provider/AbstractFileObject.java | 86 +++++++++++-----------
1 file changed, 43 insertions(+), 43 deletions(-)
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
index 0c1ae56..1c73172 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
@@ -74,39 +74,6 @@ public abstract class AbstractFileObject<AFS extends
AbstractFileSystem> impleme
private static final int INITIAL_LIST_SIZE = 5;
- private final AbstractFileName fileName;
- private final AFS fileSystem;
-
- private FileContent content;
- // Cached info
- private boolean attached;
- private FileType type;
-
- private FileObject parent;
- // Changed to hold only the name of the children and let the object
- // go into the global files cache
- // private FileObject[] children;
- private FileName[] children;
-
- private List<Object> objects;
-
- /**
- * FileServices instance.
- */
- private FileOperations operations;
-
- /**
- *
- * @param name the file name - muse be an instance of {@link
AbstractFileName}
- * @param fileSystem the file system
- * @throws ClassCastException if {@code name} is not an instance of {@link
AbstractFileName}
- */
- protected AbstractFileObject(final AbstractFileName name, final AFS
fileSystem) {
- this.fileName = name;
- this.fileSystem = fileSystem;
- fileSystem.fileObjectHanded(this);
- }
-
/**
* Traverses a file.
*/
@@ -143,6 +110,39 @@ public abstract class AbstractFileObject<AFS extends
AbstractFileSystem> impleme
}
}
}
+ private final AbstractFileName fileName;
+
+ private final AFS fileSystem;
+ private FileContent content;
+ // Cached info
+ private boolean attached;
+
+ private FileType type;
+ private FileObject parent;
+
+ // Changed to hold only the name of the children and let the object
+ // go into the global files cache
+ // private FileObject[] children;
+ private FileName[] children;
+
+ private List<Object> objects;
+
+ /**
+ * FileServices instance.
+ */
+ private FileOperations operations;
+
+ /**
+ *
+ * @param name the file name - muse be an instance of {@link
AbstractFileName}
+ * @param fileSystem the file system
+ * @throws ClassCastException if {@code name} is not an instance of {@link
AbstractFileName}
+ */
+ protected AbstractFileObject(final AbstractFileName name, final AFS
fileSystem) {
+ this.fileName = name;
+ this.fileSystem = fileSystem;
+ fileSystem.fileObjectHanded(this);
+ }
/**
* Attaches to the file.
@@ -1178,16 +1178,6 @@ public abstract class AbstractFileObject<AFS extends
AbstractFileSystem> impleme
}
/**
- * Returns the receiver as a URI String for public display, like, without
a password.
- *
- * @return A URI String without a password, never {@code null}.
- */
- @Override
- public String getPublicURIString() {
- return fileName.getFriendlyURI();
- }
-
- /**
* Prepares this file for writing. Makes sure it is either a file, or its
parent folder exists. Returns an output
* stream to use to write the content of the file to.
*
@@ -1269,6 +1259,16 @@ public abstract class AbstractFileObject<AFS extends
AbstractFileSystem> impleme
}
/**
+ * Returns the receiver as a URI String for public display, like, without
a password.
+ *
+ * @return A URI String without a password, never {@code null}.
+ */
+ @Override
+ public String getPublicURIString() {
+ return fileName.getFriendlyURI();
+ }
+
+ /**
* Returns an input/output stream to use to read and write the content of
the file in and random manner.
*
* @param mode The RandomAccessMode.