FS
- A CompressedFileFileSystemjava.io.Closeable
, java.lang.AutoCloseable
, java.lang.Comparable<FS>
, java.lang.Iterable<FS>
, FileObject
Bzip2FileObject
, GzipFileObject
public abstract class CompressedFileFileObject<FS extends CompressedFileFileSystem> extends AbstractFileObject<FS>
Such a file only has one child (the compressed filename with stripped last extension)
Modifier | Constructor | Description |
---|---|---|
protected |
CompressedFileFileObject(AbstractFileName name,
FileObject container,
FS fs) |
Modifier and Type | Method | 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, close, compareTo, copyFrom, createFolder, delete, delete, deleteAll, doAttach, doCreateFileContent, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, doGetInputStream, doGetOutputStream, doGetRandomAccessContent, doIsExecutable, doIsHidden, doIsReadable, doIsSameFile, doIsWriteable, doListChildrenResolved, doRemoveAttribute, doRename, doSetAttribute, doSetExecutable, doSetLastModifiedTime, doSetReadable, doSetWritable, endOutput, exists, finalize, findFiles, findFiles, getAbstractFileSystem, getChild, getChildren, getContent, getFileContentInfoFactory, getFileOperations, getFileSystem, getInputStream, getName, getOutputStream, getOutputStream, getParent, getPublicURIString, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isExecutable, isFile, isFolder, isHidden, isReadable, isSameFile, iterator, listFiles, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, setExecutable, setReadable, setWritable, toString
protected CompressedFileFileObject(AbstractFileName name, FileObject container, FS fs)
public boolean isWriteable() throws FileSystemException
isWriteable
in interface FileObject
isWriteable
in class AbstractFileObject<FS extends CompressedFileFileSystem>
true
if this file is writeable, false
if not.FileSystemException
- if an error occurs.protected FileType doGetType() throws FileSystemException
doGetType
in class AbstractFileObject<FS extends CompressedFileFileSystem>
FileSystemException
protected java.lang.String[] doListChildren()
doListChildren
in class AbstractFileObject<FS extends CompressedFileFileSystem>
protected long doGetContentSize()
doGetType()
returns
FileType.FILE
.doGetContentSize
in class AbstractFileObject<FS extends CompressedFileFileSystem>
protected long doGetLastModifiedTime() throws java.lang.Exception
doGetLastModifiedTime
in class AbstractFileObject<FS extends CompressedFileFileSystem>
java.lang.Exception
- if an error occurs.protected FileObject getContainer()
public void createFile() throws FileSystemException
AbstractFileObject
createFile
in interface FileObject
createFile
in class AbstractFileObject<FS extends CompressedFileFileSystem>
FileSystemException
- if an error occurs.