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 f0e0ac12a787c98a672dd6f100c06d0403dcc718
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Aug 12 07:54:27 2024 -0400

    Javadoc
---
 .../commons/vfs2/provider/tar/TarFileSystem.java       | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileSystem.java
 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileSystem.java
index d62e56bc..c4bf65e2 100644
--- 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileSystem.java
+++ 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileSystem.java
@@ -102,6 +102,13 @@ public class TarFileSystem extends AbstractFileSystem {
         return new TarFileObject(name, null, this, false);
     }
 
+    /**
+     * Creates a new TarArchiveInputStream.
+     *
+     * @param file the file.
+     * @return a new TarArchiveInputStream.
+     * @throws FileSystemException if a file system error occurs.
+     */
     protected TarArchiveInputStream createTarFile(final File file) throws 
FileSystemException {
         try {
             if ("tgz".equalsIgnoreCase(getRootName().getScheme())) {
@@ -117,8 +124,15 @@ public class TarFileSystem extends AbstractFileSystem {
         }
     }
 
-    protected TarFileObject createTarFileObject(final AbstractFileName name, 
final TarArchiveEntry entry) {
-        return new TarFileObject(name, entry, this, true);
+    /**
+     * Creates a new TarFileObject.
+     *
+     * @param fileName the file name.
+     * @param entry the archive entry.
+     * @return a new TarFileObject.
+     */
+    protected TarFileObject createTarFileObject(final AbstractFileName 
fileName, final TarArchiveEntry entry) {
+        return new TarFileObject(fileName, entry, this, true);
     }
 
     @Override

Reply via email to