public class ConnectionFileObject extends org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
| Constructor and Description |
|---|
ConnectionFileObject(org.apache.commons.vfs2.provider.AbstractFileName name,
ConnectionFileSystem fs,
org.apache.commons.vfs2.provider.AbstractFileObject resolvedFileObject,
String domain) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRenameTo(org.apache.commons.vfs2.FileObject newfile) |
void |
close() |
void |
copyFrom(org.apache.commons.vfs2.FileObject file,
org.apache.commons.vfs2.FileSelector selector) |
void |
createFile() |
void |
createFolder() |
boolean |
delete() |
int |
delete(org.apache.commons.vfs2.FileSelector selector) |
int |
deleteAll() |
protected long |
doGetContentSize() |
protected InputStream |
doGetInputStream() |
protected org.apache.commons.vfs2.FileType |
doGetType() |
protected String[] |
doListChildren() |
boolean |
exists() |
org.apache.commons.vfs2.FileObject |
getChild(String name) |
org.apache.commons.vfs2.FileObject[] |
getChildren()
Resolve children from the delegated vfs provider then convert to PVFS
|
org.apache.commons.vfs2.FileContent |
getContent() |
org.apache.commons.vfs2.operations.FileOperations |
getFileOperations() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
OutputStream |
getOutputStream(boolean bAppend) |
org.apache.commons.vfs2.RandomAccessContent |
getRandomAccessContent(org.apache.commons.vfs2.util.RandomAccessMode mode) |
org.apache.commons.vfs2.FileObject |
getResolvedFileObject() |
org.apache.commons.vfs2.FileType |
getType() |
void |
holdObject(Object strongRef) |
boolean |
isAttached() |
boolean |
isContentOpen() |
boolean |
isExecutable() |
boolean |
isFile() |
boolean |
isFolder() |
boolean |
isHidden() |
boolean |
isReadable() |
boolean |
isWriteable() |
void |
moveTo(org.apache.commons.vfs2.FileObject destFile) |
void |
refresh() |
childrenChanged, compareTo, doAttach, doCreateFileContent, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, doGetLastModifiedTime, doGetOutputStream, doGetRandomAccessContent, doIsExecutable, doIsHidden, doIsReadable, doIsSameFile, doIsWriteable, doListChildrenResolved, doRemoveAttribute, doRename, doSetAttribute, doSetExecutable, doSetLastModifiedTime, doSetReadable, doSetWritable, endOutput, finalize, findFiles, findFiles, getAbstractFileSystem, getFileContentInfoFactory, getFileSystem, getName, getParent, getPublicURIString, getURL, handleChanged, handleCreate, handleDelete, injectType, isSameFile, iterator, listFiles, notifyAllStreamsClosed, onChange, onChildrenChanged, resolveFile, resolveFile, setExecutable, setReadable, setWritable, toStringclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String DELIMITER
public ConnectionFileObject(org.apache.commons.vfs2.provider.AbstractFileName name,
ConnectionFileSystem fs,
org.apache.commons.vfs2.provider.AbstractFileObject resolvedFileObject,
String domain)
protected long doGetContentSize()
throws Exception
doGetContentSize in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>Exceptionprotected InputStream doGetInputStream() throws Exception
doGetInputStream in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>Exceptionprotected org.apache.commons.vfs2.FileType doGetType()
throws Exception
doGetType in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>Exceptionprotected String[] doListChildren() throws Exception
doListChildren in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>Exceptionpublic boolean canRenameTo(org.apache.commons.vfs2.FileObject newfile)
canRenameTo in interface org.apache.commons.vfs2.FileObjectcanRenameTo in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>public void close()
throws org.apache.commons.vfs2.FileSystemException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.commons.vfs2.FileObjectclose in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic void copyFrom(org.apache.commons.vfs2.FileObject file,
org.apache.commons.vfs2.FileSelector selector)
throws org.apache.commons.vfs2.FileSystemException
copyFrom in interface org.apache.commons.vfs2.FileObjectcopyFrom in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic void createFile()
throws org.apache.commons.vfs2.FileSystemException
createFile in interface org.apache.commons.vfs2.FileObjectcreateFile in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic void createFolder()
throws org.apache.commons.vfs2.FileSystemException
createFolder in interface org.apache.commons.vfs2.FileObjectcreateFolder in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic boolean delete()
throws org.apache.commons.vfs2.FileSystemException
delete in interface org.apache.commons.vfs2.FileObjectdelete in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic int delete(org.apache.commons.vfs2.FileSelector selector)
throws org.apache.commons.vfs2.FileSystemException
delete in interface org.apache.commons.vfs2.FileObjectdelete in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic int deleteAll()
throws org.apache.commons.vfs2.FileSystemException
deleteAll in interface org.apache.commons.vfs2.FileObjectdeleteAll in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic boolean exists()
throws org.apache.commons.vfs2.FileSystemException
exists in interface org.apache.commons.vfs2.FileObjectexists in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic org.apache.commons.vfs2.FileObject getChild(String name) throws org.apache.commons.vfs2.FileSystemException
getChild in interface org.apache.commons.vfs2.FileObjectgetChild in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic org.apache.commons.vfs2.FileObject[] getChildren()
throws org.apache.commons.vfs2.FileSystemException
getChildren in interface org.apache.commons.vfs2.FileObjectgetChildren in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemException - File doesn't existpublic org.apache.commons.vfs2.FileContent getContent()
throws org.apache.commons.vfs2.FileSystemException
getContent in interface org.apache.commons.vfs2.FileObjectgetContent in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic org.apache.commons.vfs2.operations.FileOperations getFileOperations()
throws org.apache.commons.vfs2.FileSystemException
getFileOperations in interface org.apache.commons.vfs2.FileObjectgetFileOperations in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic InputStream getInputStream() throws org.apache.commons.vfs2.FileSystemException
getInputStream in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic OutputStream getOutputStream() throws org.apache.commons.vfs2.FileSystemException
getOutputStream in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic OutputStream getOutputStream(boolean bAppend) throws org.apache.commons.vfs2.FileSystemException
getOutputStream in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic org.apache.commons.vfs2.RandomAccessContent getRandomAccessContent(org.apache.commons.vfs2.util.RandomAccessMode mode)
throws org.apache.commons.vfs2.FileSystemException
getRandomAccessContent in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic org.apache.commons.vfs2.FileType getType()
throws org.apache.commons.vfs2.FileSystemException
getType in interface org.apache.commons.vfs2.FileObjectgetType in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic void holdObject(Object strongRef)
holdObject in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>public boolean isAttached()
isAttached in interface org.apache.commons.vfs2.FileObjectisAttached in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>public boolean isContentOpen()
isContentOpen in interface org.apache.commons.vfs2.FileObjectisContentOpen in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>public boolean isExecutable()
throws org.apache.commons.vfs2.FileSystemException
isExecutable in interface org.apache.commons.vfs2.FileObjectisExecutable in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic boolean isFile()
throws org.apache.commons.vfs2.FileSystemException
isFile in interface org.apache.commons.vfs2.FileObjectisFile in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic boolean isFolder()
throws org.apache.commons.vfs2.FileSystemException
isFolder in interface org.apache.commons.vfs2.FileObjectisFolder in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic boolean isHidden()
throws org.apache.commons.vfs2.FileSystemException
isHidden in interface org.apache.commons.vfs2.FileObjectisHidden in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic boolean isReadable()
throws org.apache.commons.vfs2.FileSystemException
isReadable in interface org.apache.commons.vfs2.FileObjectisReadable in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic boolean isWriteable()
throws org.apache.commons.vfs2.FileSystemException
isWriteable in interface org.apache.commons.vfs2.FileObjectisWriteable in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic void moveTo(org.apache.commons.vfs2.FileObject destFile)
throws org.apache.commons.vfs2.FileSystemException
moveTo in interface org.apache.commons.vfs2.FileObjectmoveTo in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic void refresh()
throws org.apache.commons.vfs2.FileSystemException
refresh in interface org.apache.commons.vfs2.FileObjectrefresh in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic org.apache.commons.vfs2.FileObject getResolvedFileObject()
Copyright © 2020 Hitachi Vantara. All rights reserved.