|
||||||||||
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.http.HttpFileObject
public class HttpFileObject
A file object backed by commons httpclient.
Constructor Summary | |
---|---|
protected |
HttpFileObject(AbstractFileName name,
HttpFileSystem fileSystem)
|
Method Summary | |
---|---|
protected void |
doDetach()
Detaches this file object from its file resource. |
protected long |
doGetContentSize()
Returns the size of the file content (in bytes). |
protected InputStream |
doGetInputStream()
Creates an input stream to read the file content from. |
protected long |
doGetLastModifiedTime()
Returns the last modified time of this file. |
protected RandomAccessContent |
doGetRandomAccessContent(RandomAccessMode mode)
Creates access to the file for random i/o. |
protected FileType |
doGetType()
Determines the type of this file. |
protected String[] |
doListChildren()
Lists the children of this file. |
protected String |
encodePath(String decodedPath)
|
protected FileContentInfoFactory |
getFileContentInfoFactory()
create the filecontentinfo implementation. |
protected void |
setupMethod(org.apache.commons.httpclient.HttpMethod method)
Prepares a Method object. |
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileObject |
---|
canRenameTo, childrenChanged, close, copyFrom, createFile, createFolder, delete, delete, doAttach, doCreateFileContent, doCreateFolder, doDelete, doGetAttributes, doGetCertificates, doGetOutputStream, doIsHidden, doIsReadable, doIsSameFile, doIsWriteable, doListChildrenResolved, doRemoveAttribute, doRename, doSetAttribute, doSetLastModifiedTime, endOutput, exists, finalize, findFiles, findFiles, getChild, getChildren, getContent, getFileOperations, getFileSystem, getInputStream, getName, getOutputStream, getOutputStream, getParent, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isHidden, isReadable, isSameFile, isWriteable, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected HttpFileObject(AbstractFileName name, HttpFileSystem fileSystem)
Method Detail |
---|
protected void doDetach() throws Exception
doDetach
in class AbstractFileObject
Exception
- if an error occurs.protected FileType doGetType() throws Exception
doGetType
in class AbstractFileObject
Exception
- if an error occurs.protected String[] doListChildren() throws Exception
doListChildren
in class AbstractFileObject
Exception
- if an error occurs.protected long doGetContentSize() throws Exception
doGetContentSize
in class AbstractFileObject
Exception
- if an error occurs.protected long doGetLastModifiedTime() throws Exception
doGetLastModifiedTime
in class AbstractFileObject
Exception
- if an error occurs.protected InputStream doGetInputStream() throws Exception
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.protected RandomAccessContent doGetRandomAccessContent(RandomAccessMode mode) 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.
doGetRandomAccessContent
in class AbstractFileObject
mode
- The mode to access the file.
Exception
- if an error occurs.protected void setupMethod(org.apache.commons.httpclient.HttpMethod method) throws FileSystemException, org.apache.commons.httpclient.URIException
FileSystemException
org.apache.commons.httpclient.URIException
protected String encodePath(String decodedPath) throws org.apache.commons.httpclient.URIException
org.apache.commons.httpclient.URIException
protected FileContentInfoFactory getFileContentInfoFactory()
AbstractFileObject
getFileContentInfoFactory
in class AbstractFileObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |