public class ZipFileObject
extends org.apache.commons.vfs2.provider.AbstractFileObject<org.apache.commons.vfs2.provider.zip.ZipFileSystem>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.zip.ZipEntry |
entry
The ZipEntry.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ZipFileObject(AbstractFileName name,
java.util.zip.ZipEntry entry,
org.apache.commons.vfs2.provider.zip.ZipFileSystem fs,
boolean zipExists) |
| Modifier and Type | Method and Description |
|---|---|
void |
attachChild(org.apache.commons.vfs2.FileName childName)
Attaches a child.
|
protected long |
doGetContentSize()
Returns the size of the file content (in bytes).
|
protected java.io.InputStream |
doGetInputStream()
Creates an input stream to read the file content from.
|
protected long |
doGetLastModifiedTime()
Returns the last modified time of this file.
|
protected org.apache.commons.vfs2.FileType |
doGetType()
Returns the file's type.
|
protected java.lang.String[] |
doListChildren()
Lists the children of the file.
|
boolean |
isWriteable()
Determines if this file can be written to.
|
protected void |
setZipEntry(java.util.zip.ZipEntry entry)
Sets the details for this file object.
|
canRenameTo, childrenChanged, close, compareTo, copyFrom, createFile, createFolder, delete, delete, deleteAll, doAttach, doCreateFileContent, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, doGetOutputStream, doGetRandomAccessContent, doIsExecutable, doIsHidden, doIsReadable, doIsSameFile, doIsWriteable, doListChildrenResolved, doRemoveAttribute, doRename, doSetAttribute, doSetExecutable, doSetLastModifiedTime, doSetReadable, doSetWritable, endOutput, exists, finalize, findFiles, findFiles, getAbstractFileSystem, getChild, getChildren, getContent, getFileContentInfoFactory, getFileOperations, getFileSystem, getInputStream, getName, getOutputStream, getOutputStream, getParent, getPublicURIString, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isExecutable, isFile, isFolder, isHidden, isReadable, isSameFile, iterator, listFiles, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, setExecutable, setReadable, setWritable, toStringprotected ZipFileObject(AbstractFileName name, java.util.zip.ZipEntry entry, org.apache.commons.vfs2.provider.zip.ZipFileSystem fs, boolean zipExists) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemExceptionprotected void setZipEntry(java.util.zip.ZipEntry entry)
entry - ZIP information related to this file.public void attachChild(org.apache.commons.vfs2.FileName childName)
Shouldn't this method have package-only visibility? Cannot change this without breaking binary compatibility.
childName - The name of the child.public boolean isWriteable()
throws org.apache.commons.vfs2.FileSystemException
isWriteable in interface org.apache.commons.vfs2.FileObjectisWriteable in class org.apache.commons.vfs2.provider.AbstractFileObject<org.apache.commons.vfs2.provider.zip.ZipFileSystem>true if this file is writeable, false if not.org.apache.commons.vfs2.FileSystemException - if an error occurs.protected org.apache.commons.vfs2.FileType doGetType()
doGetType in class org.apache.commons.vfs2.provider.AbstractFileObject<org.apache.commons.vfs2.provider.zip.ZipFileSystem>protected java.lang.String[] doListChildren()
doListChildren in class org.apache.commons.vfs2.provider.AbstractFileObject<org.apache.commons.vfs2.provider.zip.ZipFileSystem>protected long doGetContentSize()
doGetType() returns FileType.FILE.doGetContentSize in class org.apache.commons.vfs2.provider.AbstractFileObject<org.apache.commons.vfs2.provider.zip.ZipFileSystem>protected long doGetLastModifiedTime()
throws java.lang.Exception
doGetLastModifiedTime in class org.apache.commons.vfs2.provider.AbstractFileObject<org.apache.commons.vfs2.provider.zip.ZipFileSystem>java.lang.Exceptionprotected java.io.InputStream doGetInputStream()
throws java.lang.Exception
doGetType() returns FileType.FILE. The input stream
returned by this method is guaranteed to be closed before this
method is called again.doGetInputStream in class org.apache.commons.vfs2.provider.AbstractFileObject<org.apache.commons.vfs2.provider.zip.ZipFileSystem>java.lang.Exception