FS - A CompressedFileFileSystempublic 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 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, 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, toStringclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected CompressedFileFileObject(AbstractFileName name, FileObject container, FS fs)
public boolean isWriteable()
throws FileSystemException
isWriteable in interface FileObjectisWriteable 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>FileSystemExceptionprotected 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
AbstractFileObjectcreateFile in interface FileObjectcreateFile in class AbstractFileObject<FS extends CompressedFileFileSystem>FileSystemException - if an error occurs.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.