Class GzipFileObject
java.lang.Object
org.apache.commons.vfs.provider.AbstractFileObject
org.apache.commons.vfs.provider.compressed.CompressedFileFileObject
org.apache.commons.vfs.provider.gzip.GzipFileObject
- All Implemented Interfaces:
FileObject
the gzip file
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Mario Ivankovits
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGzipFileObject(FileName name, FileObject container, CompressedFileFileSystem fs) -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamCreates an input stream to read the file content from.protected OutputStreamdoGetOutputStream(boolean bAppend) Creates an output stream to write the file content to.Methods inherited from class CompressedFileFileObject
createFile, doGetContentSize, doGetLastModifiedTime, doGetType, doListChildren, getContainer, isWriteableMethods inherited from class AbstractFileObject
canRenameTo, childrenChanged, childrenChanged, close, copyFrom, createFolder, delete, delete, doAttach, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, doGetRandomAccessContent, doIsHidden, doIsReadable, doIsSameFile, doIsWriteable, doListChildrenResolved, 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, toStringMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface FileObject
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
-
Constructor Details
-
GzipFileObject
-
-
Method Details
-
doGetInputStream
Description copied from class:AbstractFileObjectCreates an input stream to read the file content from. Is only called ifAbstractFileObject.doGetType()returnsFileType.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.
- Specified by:
doGetInputStreamin classAbstractFileObject- Throws:
Exception
-
doGetOutputStream
Description copied from class:AbstractFileObjectCreates an output stream to write the file content to. Is only called if:AbstractFileObject.doIsWriteable()returns true.AbstractFileObject.doGetType()returnsFileType.FILE, orAbstractFileObject.doGetType()returnsFileType.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.- Overrides:
doGetOutputStreamin classAbstractFileObject- Throws:
Exception
-