Class JarFileObject
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileObject<ZipFileSystem>
org.apache.commons.vfs2.provider.zip.ZipFileObject
org.apache.commons.vfs2.provider.jar.JarFileObject
- All Implemented Interfaces:
Closeable, AutoCloseable, Comparable<FileObject>, Iterable<FileObject>, FileObject
A file in a Jar file system.
-
Field Summary
FieldsFields inherited from class ZipFileObject
entryFields inherited from class AbstractFileObject
DEFAULT_BUFFER_SIZEFields inherited from interface FileObject
EMPTY_ARRAY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJarFileObject(AbstractFileName name, ZipEntry entry, JarFileSystem fs, boolean zipExists) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAll(Attributes src, Map<String, Object> dest) Adds the source attributes to the destination map.Returns the value of an attribute.protected Certificate[]Return the certificates of this JarEntry.(package private) AttributesReturns the attributes of this file.(package private) ManifestReturns the Jar manifest.Methods inherited from class ZipFileObject
attachChild, doAttach, doDetach, doGetContentSize, doGetInputStream, doGetLastModifiedTime, doGetType, doListChildren, isWriteable, setZipEntryMethods inherited from class AbstractFileObject
canRenameTo, childrenChanged, close, compareTo, copyFrom, createFile, createFolder, delete, delete, deleteAll, doCreateFileContent, doCreateFolder, doDelete, doGetInputStream, doGetOutputStream, doGetRandomAccessContent, doIsExecutable, doIsHidden, doIsReadable, doIsSameFile, doIsSymbolicLink, doIsWriteable, doListChildrenResolved, doRemoveAttribute, doRename, doSetAttribute, doSetExecutable, doSetLastModifiedTime, doSetReadable, doSetWritable, endOutput, exists, finalize, findFiles, findFiles, getAbstractFileSystem, getChild, getChildren, getContent, getFileContentInfoFactory, getFileOperations, getFileSystem, getInputStream, getInputStream, getName, getOutputStream, getOutputStream, getParent, getPublicURIString, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isExecutable, isFile, isFolder, isHidden, isReadable, isSameFile, isSymbolicLink, iterator, listFiles, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, setExecutable, setReadable, setWritable, toStringMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface FileObject
getPath, getURIMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
fs
-
attributes
-
-
Constructor Details
-
JarFileObject
protected JarFileObject(AbstractFileName name, ZipEntry entry, JarFileSystem fs, boolean zipExists) throws FileSystemException - Throws:
FileSystemException
-
-
Method Details
-
getManifest
-
getAttributes
Returns the attributes of this file.- Throws:
IOException
-
doGetAttributes
Returns the value of an attribute.- Overrides:
doGetAttributesin classAbstractFileObject<ZipFileSystem>- Returns:
- The attributes of the file.
- Throws:
Exception- if an error occurs.
-
addAll
Adds the source attributes to the destination map. -
doGetCertificates
Return the certificates of this JarEntry.- Overrides:
doGetCertificatesin classAbstractFileObject<ZipFileSystem>- Returns:
- The certificates used to sign the file.
-