public class GzipFileObject extends CompressedFileFileObject<GzipFileSystem>
SIZE_UNDEFINED
DEFAULT_BUFFER_SIZE
EMPTY_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
GzipFileObject(AbstractFileName name,
FileObject container,
CompressedFileFileSystem fs)
Deprecated.
|
protected |
GzipFileObject(AbstractFileName name,
FileObject container,
GzipFileSystem fs) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
doGetInputStream(int bufferSize)
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.
|
createFile, doGetContentSize, doGetLastModifiedTime, doGetType, doListChildren, getContainer, isWriteable
canRenameTo, childrenChanged, close, compareTo, copyFrom, createFolder, delete, delete, deleteAll, doAttach, doCreateFileContent, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, doGetInputStream, 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, 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
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPath, getURI
forEach, spliterator
@Deprecated protected GzipFileObject(AbstractFileName name, FileObject container, CompressedFileFileSystem fs)
GzipFileObject(AbstractFileName, FileObject, GzipFileSystem)
instead.name
- Abstract file name.container
- My container.fs
- My file system.protected GzipFileObject(AbstractFileName name, FileObject container, GzipFileSystem fs)
protected InputStream doGetInputStream(int bufferSize) 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<GzipFileSystem>
bufferSize
- Buffer size hint.Exception
- if an error occurs.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.
The returned stream does not have to be buffered.
This implementation throws an exception.
doGetOutputStream
in class AbstractFileObject<GzipFileSystem>
bAppend
- true if the file should be appended to, false if it should be overwritten.Exception
- if an error occurs.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.