|
||||||||||
| 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.compressed.CompressedFileFileObject
public abstract class CompressedFileFileObject
A compressed file.
Such a file do only have one child (the compressed filename with stripped last extension)
| Field Summary | |
|---|---|
private java.lang.String[] |
children
|
private FileObject |
container
|
| Constructor Summary | |
|---|---|
protected |
CompressedFileFileObject(FileName name,
FileObject container,
CompressedFileFileSystem fs)
|
| Method Summary | |
|---|---|
void |
createFile()
Creates this file, if it does not exist. |
protected long |
doGetContentSize()
Returns the size of the file content (in bytes). |
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. |
protected FileObject |
getContainer()
|
boolean |
isWriteable()
Determines if this file can be written to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.commons.vfs.FileObject |
|---|
canRenameTo, close, copyFrom, 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 |
|---|
private final FileObject container
private java.lang.String[] children
| Constructor Detail |
|---|
protected CompressedFileFileObject(FileName name,
FileObject container,
CompressedFileFileSystem fs)
| Method Detail |
|---|
public boolean isWriteable()
throws FileSystemException
isWriteable in interface FileObjectisWriteable in class AbstractFileObjecttrue if this file is writeable, false if not.
FileSystemException - On error determining if this file exists.
protected FileType doGetType()
throws FileSystemException
doGetType in class AbstractFileObjectFileSystemExceptionprotected java.lang.String[] doListChildren()
doListChildren in class AbstractFileObjectprotected long doGetContentSize()
doGetType() returns FileType.FILE.
doGetContentSize in class AbstractFileObject
protected long doGetLastModifiedTime()
throws java.lang.Exception
doGetLastModifiedTime in class AbstractFileObjectjava.lang.Exceptionprotected FileObject getContainer()
public void createFile()
throws FileSystemException
AbstractFileObject
createFile in interface FileObjectcreateFile in class AbstractFileObjectFileSystemException - If the file already exists with the wrong type, or the parent
folder is read-only, or on error creating this file or one of
its ancestors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||