public class HttpFileObject extends AbstractFileObject
| Modifier | Constructor and Description |
|---|---|
protected |
HttpFileObject(AbstractFileName name,
HttpFileSystem fileSystem) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDetach()
Detaches this file object from its file resource.
|
protected long |
doGetContentSize()
Returns the size of the file content (in bytes).
|
protected java.io.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 java.lang.String[] |
doListChildren()
Lists the children of this file.
|
protected java.lang.String |
encodePath(java.lang.String decodedPath) |
protected FileContentInfoFactory |
getFileContentInfoFactory()
create the filecontentinfo implementation.
|
protected void |
setupMethod(HttpMethod method)
Prepares a Method object.
|
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, toStringprotected HttpFileObject(AbstractFileName name, HttpFileSystem fileSystem)
protected void doDetach()
throws java.lang.Exception
doDetach in class AbstractFileObjectjava.lang.Exception - if an error occurs.protected FileType doGetType() throws java.lang.Exception
doGetType in class AbstractFileObjectjava.lang.Exception - if an error occurs.protected java.lang.String[] doListChildren()
throws java.lang.Exception
doListChildren in class AbstractFileObjectjava.lang.Exception - if an error occurs.protected long doGetContentSize()
throws java.lang.Exception
doGetContentSize in class AbstractFileObjectjava.lang.Exception - if an error occurs.protected long doGetLastModifiedTime()
throws java.lang.Exception
doGetLastModifiedTime in class AbstractFileObjectjava.lang.Exception - if an error occurs.protected java.io.InputStream doGetInputStream()
throws java.lang.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 AbstractFileObjectjava.lang.Exception - if an error occurs.protected RandomAccessContent doGetRandomAccessContent(RandomAccessMode mode) throws java.lang.Exception
AbstractFileObjectAbstractFileObject.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 AbstractFileObjectmode - The mode to access the file.java.lang.Exception - if an error occurs.protected void setupMethod(HttpMethod method)
throws FileSystemException,
URIException
FileSystemExceptionURIExceptionprotected java.lang.String encodePath(java.lang.String decodedPath)
throws URIException
URIExceptionprotected FileContentInfoFactory getFileContentInfoFactory()
AbstractFileObjectgetFileContentInfoFactory in class AbstractFileObject