org.apache.commons.vfs2.provider.jar
Class JarFileObject

java.lang.Object
  extended by org.apache.commons.vfs2.provider.AbstractFileObject
      extended by org.apache.commons.vfs2.provider.zip.ZipFileObject
          extended by org.apache.commons.vfs2.provider.jar.JarFileObject
All Implemented Interfaces:
FileObject

public class JarFileObject
extends ZipFileObject

A file in a Jar file system.

Author:
Commons VFS team

Field Summary
 
Fields inherited from class org.apache.commons.vfs2.provider.zip.ZipFileObject
entry
 
Constructor Summary
protected JarFileObject(AbstractFileName name, java.util.zip.ZipEntry entry, JarFileSystem fs, boolean zipExists)
           
 
Method Summary
protected  java.util.Map<java.lang.String,java.lang.Object> doGetAttributes()
          Returns the value of an attribute.
protected  java.security.cert.Certificate[] doGetCertificates()
          Return the certificates of this JarEntry.
 
Methods inherited from class org.apache.commons.vfs2.provider.zip.ZipFileObject
attachChild, doGetContentSize, doGetInputStream, doGetLastModifiedTime, doGetType, doListChildren, isWriteable, setZipEntry
 
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileObject
canRenameTo, childrenChanged, close, copyFrom, createFile, createFolder, delete, delete, doAttach, doCreateFileContent, doCreateFolder, doDelete, doDetach, doGetOutputStream, doGetRandomAccessContent, doIsHidden, doIsReadable, doIsSameFile, doIsWriteable, doListChildrenResolved, doRemoveAttribute, 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.vfs2.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
 

Constructor Detail

JarFileObject

protected JarFileObject(AbstractFileName name,
                        java.util.zip.ZipEntry entry,
                        JarFileSystem fs,
                        boolean zipExists)
                 throws FileSystemException
Throws:
FileSystemException
Method Detail

doGetAttributes

protected java.util.Map<java.lang.String,java.lang.Object> doGetAttributes()
                                                                    throws java.lang.Exception
Returns the value of an attribute.

Overrides:
doGetAttributes in class AbstractFileObject
Returns:
The attributes of the file.
Throws:
java.lang.Exception - if an error occurs.

doGetCertificates

protected java.security.cert.Certificate[] doGetCertificates()
Return the certificates of this JarEntry.

Overrides:
doGetCertificates in class AbstractFileObject
Returns:
The certificates used to sign the file.