public class Bzip2FileObject extends CompressedFileFileObject
Modifier | Constructor and Description |
---|---|
protected |
Bzip2FileObject(AbstractFileName name,
FileObject container,
CompressedFileFileSystem fs) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
doGetInputStream()
Creates an input stream to read the file content from.
|
protected OutputStream |
doGetOutputStream(boolean bAppend)
Creates an output stream to write the file content to.
|
static InputStream |
wrapInputStream(String name,
InputStream is) |
createFile, doGetContentSize, doGetLastModifiedTime, doGetType, doListChildren, getContainer, isWriteable
canRenameTo, childrenChanged, close, copyFrom, createFolder, delete, delete, doAttach, doCreateFileContent, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, doGetRandomAccessContent, doIsHidden, doIsReadable, doIsSameFile, doIsWriteable, doListChildrenResolved, doRemoveAttribute, 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, toString
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
canRenameTo, close, copyFrom, createFolder, delete, delete, exists, findFiles, findFiles, getChild, getChildren, getContent, getFileOperations, getFileSystem, getName, getParent, getType, getURL, isAttached, isContentOpen, isHidden, isReadable, moveTo, refresh, resolveFile, resolveFile
protected Bzip2FileObject(AbstractFileName name, FileObject container, CompressedFileFileSystem fs)
protected InputStream doGetInputStream() throws 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
Exception
- if an error occurs.public static InputStream wrapInputStream(String name, InputStream is) throws IOException
IOException
protected OutputStream doGetOutputStream(boolean bAppend) throws 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.
It is guaranteed that there are no open stream (input or output) for this file when this method is called.
The returned stream does not have to be buffered.
This implementation throws an exception.doGetOutputStream
in class AbstractFileObject
bAppend
- true if the file should be appended to, false if it should be overwritten.Exception
- if an error occurs.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.