FS
- A CompressedFileFileSystempublic abstract class CompressedFileFileObject<FS extends CompressedFileFileSystem> extends AbstractFileObject<FS>
Such a file only has one child (the compressed file name with stripped last extension)
Modifier and Type | Field and Description |
---|---|
static int |
SIZE_UNDEFINED
The value returned by
doGetContentSize() when not overriden by a subclass. |
DEFAULT_BUFFER_SIZE
EMPTY_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
CompressedFileFileObject(AbstractFileName name,
FileObject container,
FS 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 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, doGetInputStream, doGetOutputStream, doGetRandomAccessContent, doIsExecutable, doIsHidden, doIsReadable, doIsSameFile, doIsSymbolicLink, doIsWriteable, doListChildrenResolved, doRemoveAttribute, doRename, doSetAttribute, doSetExecutable, doSetLastModifiedTime, doSetReadable, doSetWritable, endOutput, exists, finalize, findFiles, findFiles, getAbstractFileSystem, getChild, getChildren, getContent, getFileContentInfoFactory, getFileOperations, getFileSystem, getInputStream, getInputStream, getName, getOutputStream, getOutputStream, getParent, getPublicURIString, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isExecutable, isFile, isFolder, isHidden, isReadable, isSameFile, isSymbolicLink, iterator, listFiles, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, setExecutable, setReadable, setWritable, toString
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPath, getURI
forEach, spliterator
public static final int SIZE_UNDEFINED
doGetContentSize()
when not overriden by a subclass.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 writable, false
if not.FileSystemException
- if an error occurs.protected FileType doGetType() throws FileSystemException
doGetType
in class AbstractFileObject<FS extends CompressedFileFileSystem>
FileSystemException
protected 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 Exception
doGetLastModifiedTime
in class AbstractFileObject<FS extends CompressedFileFileSystem>
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.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.