public class ZipFileObject extends AbstractFileObject implements FileObject
| Modifier | Constructor and Description |
|---|---|
protected |
ZipFileObject(AbstractFileName name,
ZipEntry entry,
ZipFileSystem fs,
boolean zipExists) |
| Modifier and Type | Method and Description |
|---|---|
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()
Determines if this file can be written to.
|
protected void |
setZipEntry(ZipEntry entry)
Sets the details for this file object.
|
canRenameTo, childrenChanged, close, copyFrom, createFile, createFolder, delete, delete, doAttach, doCreateFileContent, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, 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, toStringclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitcanRenameTo, 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, resolveFileprotected ZipEntry entry
protected ZipFileObject(AbstractFileName name, ZipEntry entry, ZipFileSystem fs, boolean zipExists) throws FileSystemException
FileSystemExceptionprotected void setZipEntry(ZipEntry entry)
public void attachChild(FileName childName)
childName - The name of the child.public boolean isWriteable()
throws FileSystemException
isWriteable in interface FileObjectisWriteable in class AbstractFileObjecttrue if this file is writeable, false if not.FileSystemException - if an error occurs.protected FileType doGetType()
doGetType in class AbstractFileObjectprotected String[] doListChildren()
doListChildren in class AbstractFileObjectprotected long doGetContentSize()
doGetType() returns FileType.FILE.doGetContentSize in class AbstractFileObjectprotected long doGetLastModifiedTime()
throws Exception
doGetLastModifiedTime in class AbstractFileObjectException - if an error occurs.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 - if an error occurs.Copyright © 2002–2018 WSO2. All rights reserved.