org.apache.commons.vfs.provider.jar
Class JarFileObject
java.lang.Object
org.apache.commons.vfs.provider.AbstractFileObject
org.apache.commons.vfs.provider.zip.ZipFileObject
org.apache.commons.vfs.provider.jar.JarFileObject
- All Implemented Interfaces:
- FileObject
public class JarFileObject
- extends ZipFileObject
A file in a Jar file system.
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29 Nov 2006) $
- Author:
- Brian Olsen
Method Summary |
private void |
addAll(java.util.jar.Attributes src,
java.util.Map dest)
Adds the source attributes to the destination map. |
protected java.util.Map |
doGetAttributes()
Returns the value of an attribute. |
protected java.security.cert.Certificate[] |
doGetCertificates()
Return the certificates of this JarEntry. |
(package private) java.util.jar.Attributes |
getAttributes()
Returns the attributes of this file. |
(package private) java.util.jar.Manifest |
getManifest()
Returns the Jar manifest. |
Methods inherited from class org.apache.commons.vfs.provider.AbstractFileObject |
canRenameTo, childrenChanged, childrenChanged, close, copyFrom, createFile, createFolder, delete, delete, doAttach, doCreateFolder, doDelete, doDetach, doGetOutputStream, doGetRandomAccessContent, doIsHidden, doIsReadable, doIsSameFile, doIsWriteable, doListChildrenResolved, doRename, doSetAttribute, doSetLastModifiedTime, endOutput, exists, finalize, findFiles, findFiles, getChild, getChildren, getContent, getFileContentInfoFactory, getFileOperations, getFileSystem, getInputStream, getName, getOutputStream, getOutputStream, getParent, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isHidden, isReadable, isSameFile, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.commons.vfs.FileObject |
canRenameTo, close, copyFrom, createFile, createFolder, delete, delete, exists, findFiles, findFiles, getChild, getChildren, getContent, getFileOperations, getFileSystem, getName, getParent, getType, getURL, isAttached, isContentOpen, isHidden, isReadable, moveTo, refresh, resolveFile, resolveFile |
attributes
private java.util.jar.Attributes attributes
fs
final JarFileSystem fs
JarFileObject
protected JarFileObject(FileName name,
java.util.zip.ZipEntry entry,
JarFileSystem fs,
boolean zipExists)
throws FileSystemException
- Throws:
FileSystemException
getManifest
java.util.jar.Manifest getManifest()
throws java.io.IOException
- Returns the Jar manifest.
- Throws:
java.io.IOException
getAttributes
java.util.jar.Attributes getAttributes()
throws java.io.IOException
- Returns the attributes of this file.
- Throws:
java.io.IOException
doGetAttributes
protected java.util.Map doGetAttributes()
throws java.lang.Exception
- Returns the value of an attribute.
- Overrides:
doGetAttributes
in class AbstractFileObject
- Throws:
java.lang.Exception
addAll
private void addAll(java.util.jar.Attributes src,
java.util.Map dest)
- Adds the source attributes to the destination map.
doGetCertificates
protected java.security.cert.Certificate[] doGetCertificates()
- Return the certificates of this JarEntry.
- Overrides:
doGetCertificates
in class AbstractFileObject