public class GcsFileObject extends org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>
| Modifier and Type | Field and Description |
|---|---|
static int |
COPY_BUFFER_SIZE |
static String |
PATH_DELIMITER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRenameTo(org.apache.commons.vfs2.FileObject fileObject)
Returns false to reply on copyFrom method in case moving/copying file within same google storage project
|
void |
copyFrom(org.apache.commons.vfs2.FileObject file,
org.apache.commons.vfs2.FileSelector selector) |
void |
copyFrom(org.apache.commons.vfs2.FileObject file,
org.apache.commons.vfs2.FileSelector selector,
org.apache.commons.net.io.CopyStreamListener copyStreamListener)
This method help to copy blob server side if source and destination location belongs to same project.
|
void |
createFolder()
Used for creating folders.
|
protected void |
doAttach() |
protected void |
doCreateFolder()
Callback for handling create folder requests.
|
protected void |
doDelete() |
protected long |
doGetContentSize() |
protected InputStream |
doGetInputStream() |
protected long |
doGetLastModifiedTime()
Callback for handling the
getLastModifiedTime() Commons VFS API call. |
protected OutputStream |
doGetOutputStream(boolean bAppend) |
protected org.apache.commons.vfs2.FileType |
doGetType() |
protected String[] |
doListChildren() |
protected boolean |
doSetLastModifiedTime(long modtime)
We must override this method because the parent one throws exception.
|
boolean |
exists() |
org.apache.commons.vfs2.FileObject[] |
getChildren()
Returns the file's list of children.
|
URL |
signedURL(long duration)
Generate signed url to directly access file.
|
childrenChanged, close, compareTo, createFile, delete, delete, deleteAll, doCreateFileContent, doDetach, doGetAttributes, doGetCertificates, doGetInputStream, doGetRandomAccessContent, doIsExecutable, doIsHidden, doIsReadable, doIsSameFile, doIsSymbolicLink, doIsWriteable, doListChildrenResolved, doRemoveAttribute, doRename, doSetAttribute, doSetExecutable, doSetReadable, doSetWritable, endOutput, finalize, findFiles, findFiles, getAbstractFileSystem, getChild, 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, isWriteable, iterator, listFiles, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, setExecutable, setReadable, setWritable, toStringclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static int COPY_BUFFER_SIZE
public static final String PATH_DELIMITER
protected boolean doSetLastModifiedTime(long modtime)
doSetLastModifiedTime in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>modtime - the last modified time.@Nonnull protected org.apache.commons.vfs2.FileType doGetType()
doGetType in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>@Nonnull protected String[] doListChildren() throws Exception
doListChildren in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>Exceptionpublic boolean exists()
throws org.apache.commons.vfs2.FileSystemException
exists in interface org.apache.commons.vfs2.FileObjectexists in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>org.apache.commons.vfs2.FileSystemExceptionprotected long doGetContentSize()
doGetContentSize in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>@Nonnull protected InputStream doGetInputStream()
doGetInputStream in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>@Nonnull protected OutputStream doGetOutputStream(boolean bAppend)
doGetOutputStream in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>protected void doCreateFolder()
doCreateFolder in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>public void createFolder()
createFolder in interface org.apache.commons.vfs2.FileObjectcreateFolder in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>protected void doAttach()
doAttach in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>protected void doDelete()
doDelete in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>public 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<GcsFileSystem>org.apache.commons.vfs2.FileSystemException - If there was a problem listing childrenAbstractFileObject.getChildren()protected long doGetLastModifiedTime()
throws Exception
getLastModifiedTime() Commons VFS API call.doGetLastModifiedTime in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>Exceptionpublic 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<GcsFileSystem>org.apache.commons.vfs2.FileSystemExceptionpublic void copyFrom(org.apache.commons.vfs2.FileObject file,
org.apache.commons.vfs2.FileSelector selector,
org.apache.commons.net.io.CopyStreamListener copyStreamListener)
throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemExceptionpublic boolean canRenameTo(org.apache.commons.vfs2.FileObject fileObject)
canRenameTo in interface org.apache.commons.vfs2.FileObjectcanRenameTo in class org.apache.commons.vfs2.provider.AbstractFileObject<GcsFileSystem>public URL signedURL(long duration)
Copyright © 2024. All rights reserved.