|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.vfs.provider.AbstractFileObject
org.apache.commons.vfs.provider.zip.ZipFileObject
A file in a Zip file system.
| Field Summary | |
protected ZipEntry |
entry
|
| Constructor Summary | |
protected |
ZipFileObject(FileName name,
ZipEntry entry,
ZipFileSystem fs,
boolean zipExists)
|
| Method Summary | |
void |
attachChild(FileName childName)
Attaches a child |
protected long |
doGetContentSize()
Returns the size of the file content (in bytes). |
protected InputStream |
doGetInputStream()
Creates an input stream to read the file content from. |
protected long |
doGetLastModifiedTime()
Returns the last modified time of this file. |
protected FileType |
doGetType()
Returns the file's type. |
protected String[] |
doListChildren()
Lists the children of the file. |
boolean |
isWriteable()
Returns true if this file is read-only. |
protected void |
setZipEntry(ZipEntry entry)
Sets the details for this file object. |
| Methods inherited from class org.apache.commons.vfs.provider.AbstractFileObject |
canRenameTo, childrenChanged, close, copyFrom, createFile, createFolder, delete, delete, doAttach, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, doGetOutputStream, doGetRandomAccessContent, doIsHidden, doIsReadable, doIsWriteable, doListChildrenResolved, doRename, doSetAttribute, doSetLastModifiedTime, endOutput, exists, findFiles, findFiles, getChild, getChildren, getContent, getFileContentInfoFactory, getFileSystem, getInputStream, getName, getOutputStream, getOutputStream, getParent, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isHidden, isReadable, moveTo, onChange, onChildrenChanged, resolveFile, resolveFile, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, 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, getFileSystem, getName, getParent, getType, getURL, isHidden, isReadable, moveTo, resolveFile, resolveFile |
| Field Detail |
protected ZipEntry entry
| Constructor Detail |
protected ZipFileObject(FileName name,
ZipEntry entry,
ZipFileSystem fs,
boolean zipExists)
throws FileSystemException
| Method Detail |
protected void setZipEntry(ZipEntry entry)
public void attachChild(FileName childName)
public boolean isWriteable()
isWriteable in interface FileObjectisWriteable in class AbstractFileObjectprotected FileType doGetType()
doGetType in class AbstractFileObjectprotected String[] doListChildren()
doListChildren in class AbstractFileObjectprotected long doGetContentSize()
doGetType() returns FileType.FILE.
doGetContentSize in class AbstractFileObject
protected long doGetLastModifiedTime()
throws Exception
doGetLastModifiedTime in class AbstractFileObjectException
protected InputStream doGetInputStream()
throws 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 AbstractFileObjectException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||