|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.vfs2.provider.AbstractFileObject
org.apache.commons.vfs2.provider.compressed.CompressedFileFileObject
org.apache.commons.vfs2.provider.gzip.GzipFileObject
public class GzipFileObject
the gzip file.
| Constructor Summary | |
|---|---|
protected |
GzipFileObject(AbstractFileName name,
FileObject container,
CompressedFileFileSystem fs)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.commons.vfs2.provider.compressed.CompressedFileFileObject |
|---|
createFile, doGetContentSize, doGetLastModifiedTime, doGetType, doListChildren, getContainer, isWriteable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.commons.vfs2.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 Detail |
|---|
protected GzipFileObject(AbstractFileName name,
FileObject container,
CompressedFileFileSystem fs)
| Method Detail |
|---|
protected InputStream doGetInputStream()
throws Exception
AbstractFileObjectAbstractFileObject.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 AbstractFileObjectException - if an error occurs.
protected OutputStream doGetOutputStream(boolean bAppend)
throws Exception
AbstractFileObjectAbstractFileObject.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 AbstractFileObjectbAppend - true if the file should be appended to, false if it should be overwritten.
Exception - if an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||