public class Bzip2FileObject extends CompressedFileFileObject<Bzip2FileSystem>
Modifier | Constructor and Description |
---|---|
protected |
Bzip2FileObject(AbstractFileName name,
FileObject container,
Bzip2FileSystem fs) |
protected |
Bzip2FileObject(AbstractFileName name,
FileObject container,
CompressedFileFileSystem fs)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private static Bzip2FileSystem |
cast(CompressedFileFileSystem fs) |
protected java.io.InputStream |
doGetInputStream()
Creates an input stream to read the file content from.
|
protected java.io.OutputStream |
doGetOutputStream(boolean bAppend)
Creates an output stream to write the file content to.
|
static java.io.InputStream |
wrapInputStream(java.lang.String name,
java.io.InputStream is) |
createFile, doGetContentSize, doGetLastModifiedTime, doGetType, doListChildren, getContainer, isWriteable
canRenameTo, childrenChanged, close, compareTo, copyFrom, createFolder, delete, delete, deleteAll, doAttach, doCreateFileContent, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, 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, 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
@Deprecated protected Bzip2FileObject(AbstractFileName name, FileObject container, CompressedFileFileSystem fs)
Bzip2FileObject(AbstractFileName, FileObject, Bzip2FileSystem)
instead.name
- Abstract file name.container
- My container.fs
- My file system.protected Bzip2FileObject(AbstractFileName name, FileObject container, Bzip2FileSystem fs)
protected java.io.InputStream doGetInputStream() throws java.lang.Exception
AbstractFileObject
AbstractFileObject.doGetType()
returns
FileType.FILE
.
It is guaranteed that there are no open output streams for this file when this method is called.
The returned stream does not have to be buffered.
doGetInputStream
in class AbstractFileObject<Bzip2FileSystem>
java.lang.Exception
- if an error occurs.public static java.io.InputStream wrapInputStream(java.lang.String name, java.io.InputStream is) throws java.io.IOException
java.io.IOException
protected java.io.OutputStream doGetOutputStream(boolean bAppend) throws java.lang.Exception
AbstractFileObject
AbstractFileObject.doIsWriteable()
returns true.
AbstractFileObject.doGetType()
returns FileType.FILE
, or AbstractFileObject.doGetType()
returns FileType.IMAGINARY
,
and the file's parent exists and is a folder.
The returned stream does not have to be buffered.
This implementation throws an exception.
doGetOutputStream
in class AbstractFileObject<Bzip2FileSystem>
bAppend
- true if the file should be appended to, false if it should be overwritten.java.lang.Exception
- if an error occurs.private static Bzip2FileSystem cast(CompressedFileFileSystem fs)