public abstract class CompressedFileFileObject extends AbstractFileObject implements FileObject
| Modifier | Constructor and Description |
|---|---|
protected |
CompressedFileFileObject(FileName name,
FileObject container,
CompressedFileFileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
canRenameTo, childrenChanged, childrenChanged, close, copyFrom, createFolder, delete, delete, doAttach, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, doGetInputStream, 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, toStringclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitcanRenameTo, close, copyFrom, createFolder, delete, delete, exists, findFiles, findFiles, getChild, getChildren, getContent, getFileOperations, getFileSystem, getName, getParent, getType, getURL, isAttached, isContentOpen, isHidden, isReadable, moveTo, refresh, resolveFile, resolveFileprotected CompressedFileFileObject(FileName name, FileObject container, CompressedFileFileSystem fs)
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 AbstractFileObjectprotected long doGetLastModifiedTime()
throws java.lang.Exception
doGetLastModifiedTime in class AbstractFileObjectjava.lang.Exceptionprotected FileObject getContainer()
public void createFile()
throws FileSystemException
AbstractFileObjectcreateFile 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.