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, toString
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public 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>
Exception
protected InputStream doGetInputStream() throws Exception
doGetInputStream
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
Exception
protected org.apache.commons.vfs2.FileType doGetType() throws Exception
doGetType
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
Exception
protected String[] doListChildren() throws Exception
doListChildren
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
Exception
public boolean canRenameTo(org.apache.commons.vfs2.FileObject newfile)
canRenameTo
in interface org.apache.commons.vfs2.FileObject
canRenameTo
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
public void close() throws org.apache.commons.vfs2.FileSystemException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.commons.vfs2.FileObject
close
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public 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.FileObject
copyFrom
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public void createFile() throws org.apache.commons.vfs2.FileSystemException
createFile
in interface org.apache.commons.vfs2.FileObject
createFile
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public void createFolder() throws org.apache.commons.vfs2.FileSystemException
createFolder
in interface org.apache.commons.vfs2.FileObject
createFolder
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public boolean delete() throws org.apache.commons.vfs2.FileSystemException
delete
in interface org.apache.commons.vfs2.FileObject
delete
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public int delete(org.apache.commons.vfs2.FileSelector selector) throws org.apache.commons.vfs2.FileSystemException
delete
in interface org.apache.commons.vfs2.FileObject
delete
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public int deleteAll() throws org.apache.commons.vfs2.FileSystemException
deleteAll
in interface org.apache.commons.vfs2.FileObject
deleteAll
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public boolean exists() throws org.apache.commons.vfs2.FileSystemException
exists
in interface org.apache.commons.vfs2.FileObject
exists
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public org.apache.commons.vfs2.FileObject getChild(String name) throws org.apache.commons.vfs2.FileSystemException
getChild
in interface org.apache.commons.vfs2.FileObject
getChild
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public org.apache.commons.vfs2.FileObject[] getChildren() throws org.apache.commons.vfs2.FileSystemException
getChildren
in interface org.apache.commons.vfs2.FileObject
getChildren
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.FileObject
getContent
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public org.apache.commons.vfs2.operations.FileOperations getFileOperations() throws org.apache.commons.vfs2.FileSystemException
getFileOperations
in interface org.apache.commons.vfs2.FileObject
getFileOperations
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public InputStream getInputStream() throws org.apache.commons.vfs2.FileSystemException
getInputStream
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public OutputStream getOutputStream() throws org.apache.commons.vfs2.FileSystemException
getOutputStream
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public OutputStream getOutputStream(boolean bAppend) throws org.apache.commons.vfs2.FileSystemException
getOutputStream
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public 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.FileSystemException
public org.apache.commons.vfs2.FileType getType() throws org.apache.commons.vfs2.FileSystemException
getType
in interface org.apache.commons.vfs2.FileObject
getType
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public void holdObject(Object strongRef)
holdObject
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
public boolean isAttached()
isAttached
in interface org.apache.commons.vfs2.FileObject
isAttached
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
public boolean isContentOpen()
isContentOpen
in interface org.apache.commons.vfs2.FileObject
isContentOpen
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.FileObject
isExecutable
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public boolean isFile() throws org.apache.commons.vfs2.FileSystemException
isFile
in interface org.apache.commons.vfs2.FileObject
isFile
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public boolean isFolder() throws org.apache.commons.vfs2.FileSystemException
isFolder
in interface org.apache.commons.vfs2.FileObject
isFolder
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public boolean isHidden() throws org.apache.commons.vfs2.FileSystemException
isHidden
in interface org.apache.commons.vfs2.FileObject
isHidden
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public boolean isReadable() throws org.apache.commons.vfs2.FileSystemException
isReadable
in interface org.apache.commons.vfs2.FileObject
isReadable
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public boolean isWriteable() throws org.apache.commons.vfs2.FileSystemException
isWriteable
in interface org.apache.commons.vfs2.FileObject
isWriteable
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public void moveTo(org.apache.commons.vfs2.FileObject destFile) throws org.apache.commons.vfs2.FileSystemException
moveTo
in interface org.apache.commons.vfs2.FileObject
moveTo
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public void refresh() throws org.apache.commons.vfs2.FileSystemException
refresh
in interface org.apache.commons.vfs2.FileObject
refresh
in class org.apache.commons.vfs2.provider.AbstractFileObject<ConnectionFileSystem>
org.apache.commons.vfs2.FileSystemException
public org.apache.commons.vfs2.FileObject getResolvedFileObject()
Copyright © 2020 Hitachi Vantara. All rights reserved.