FileObject
public class TarFileObject extends AbstractFileObject implements FileObject
Modifier and Type | Field | Description |
---|---|---|
protected org.apache.commons.vfs.provider.tar.TarEntry |
entry |
Modifier | Constructor | Description |
---|---|---|
protected |
TarFileObject(FileName name,
org.apache.commons.vfs.provider.tar.TarEntry entry,
TarFileSystem fs,
boolean tarExists) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
attachChild(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 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 |
setTarEntry(org.apache.commons.vfs.provider.tar.TarEntry entry) |
Sets the details for this file object.
|
canRenameTo, childrenChanged, childrenChanged, close, copyFrom, createFile, createFolder, delete, delete, doAttach, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, 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
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
protected TarFileObject(FileName name, org.apache.commons.vfs.provider.tar.TarEntry entry, TarFileSystem fs, boolean tarExists) throws FileSystemException
FileSystemException
protected void setTarEntry(org.apache.commons.vfs.provider.tar.TarEntry entry)
protected void attachChild(FileName childName)
public boolean isWriteable() throws FileSystemException
isWriteable
in interface FileObject
isWriteable
in class AbstractFileObject
true
if this file is writeable, false
if not.FileSystemException
- On error determining if this file exists.protected FileType doGetType()
doGetType
in class AbstractFileObject
protected java.lang.String[] doListChildren()
doListChildren
in class AbstractFileObject
protected long doGetContentSize()
doGetType()
returns FileType.FILE
.doGetContentSize
in class AbstractFileObject
protected long doGetLastModifiedTime() throws java.lang.Exception
doGetLastModifiedTime
in class AbstractFileObject
java.lang.Exception
protected 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 AbstractFileObject
java.lang.Exception