Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Aug 12, 2024
1 parent d841d6e commit f0e0ac1
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ protected FileObject createFile(final AbstractFileName name) throws FileSystemEx
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())) {
Expand All @@ -117,8 +124,15 @@ protected TarArchiveInputStream createTarFile(final File file) throws FileSystem
}
}

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
Expand Down

0 comments on commit f0e0ac1

Please sign in to comment.