|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs2.provider.AbstractFileObject
org.apache.commons.vfs2.provider.tar.TarFileObject
public class TarFileObject
A file in a Tar file system.
Field Summary | |
---|---|
protected org.apache.commons.vfs2.provider.tar.TarEntry |
entry
The TarEntry |
Constructor Summary | |
---|---|
protected |
TarFileObject(AbstractFileName name,
org.apache.commons.vfs2.provider.tar.TarEntry entry,
TarFileSystem fs,
boolean tarExists)
|
Method Summary | |
---|---|
protected 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 |
setTarEntry(org.apache.commons.vfs2.provider.tar.TarEntry entry)
Sets the details for this file object. |
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 |
Field Detail |
---|
protected org.apache.commons.vfs2.provider.tar.TarEntry entry
Constructor Detail |
---|
protected TarFileObject(AbstractFileName name, org.apache.commons.vfs2.provider.tar.TarEntry entry, TarFileSystem fs, boolean tarExists) throws FileSystemException
FileSystemException
Method Detail |
---|
protected void setTarEntry(org.apache.commons.vfs2.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
- if an error occurs.protected FileType doGetType()
doGetType
in class AbstractFileObject
protected String[] doListChildren()
doListChildren
in class AbstractFileObject
protected long doGetContentSize()
doGetType()
returns FileType.FILE
.
doGetContentSize
in class AbstractFileObject
protected long doGetLastModifiedTime() throws Exception
doGetLastModifiedTime
in class AbstractFileObject
Exception
- 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 AbstractFileObject
Exception
- if an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |