public class SmbFileObject extends AbstractFileObject implements FileObject
| Modifier | Constructor and Description |
|---|---|
protected |
SmbFileObject(AbstractFileName name,
SmbFileSystem fileSystem) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAttach()
Attaches this file object to its file resource.
|
protected void |
doCreateFolder()
Creates this file as a folder.
|
protected void |
doDelete()
Deletes the file.
|
protected void |
doDetach() |
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 OutputStream |
doGetOutputStream(boolean bAppend)
Creates an output stream to write the file content to.
|
protected RandomAccessContent |
doGetRandomAccessContent(RandomAccessMode mode)
random access
|
protected FileType |
doGetType()
Determines the type of the file, returns null if the file does not
exist.
|
protected boolean |
doIsHidden()
Determines if this file is hidden.
|
protected String[] |
doListChildren()
Lists the children of the file.
|
protected void |
doRename(FileObject newfile) |
canRenameTo, childrenChanged, close, copyFrom, createFile, createFolder, delete, delete, doCreateFileContent, doGetAttributes, doGetCertificates, doIsReadable, doIsSameFile, doIsWriteable, doListChildrenResolved, doRemoveAttribute, doSetAttribute, doSetLastModifiedTime, endOutput, exists, finalize, findFiles, findFiles, getChild, getChildren, getContent, getFileContentInfoFactory, 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, toStringclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitcanRenameTo, close, copyFrom, createFile, createFolder, delete, delete, exists, findFiles, findFiles, getChild, getChildren, getContent, getFileOperations, getFileSystem, getName, getParent, getType, getURL, isAttached, isContentOpen, isHidden, isReadable, isWriteable, moveTo, refresh, resolveFile, resolveFileprotected SmbFileObject(AbstractFileName name, SmbFileSystem fileSystem) throws FileSystemException
FileSystemExceptionprotected void doAttach()
throws Exception
doAttach in class AbstractFileObjectExceptionprotected void doDetach()
throws Exception
doDetach in class AbstractFileObjectExceptionprotected FileType doGetType() throws Exception
doGetType in class AbstractFileObjectExceptionprotected String[] doListChildren() throws Exception
doGetType()
returns FileType.FOLDER.doListChildren in class AbstractFileObjectExceptionprotected boolean doIsHidden()
throws Exception
doIsHidden in class AbstractFileObjectExceptionprotected void doDelete()
throws Exception
doDelete in class AbstractFileObjectExceptionprotected void doRename(FileObject newfile) throws Exception
doRename in class AbstractFileObjectExceptionprotected void doCreateFolder()
throws Exception
doCreateFolder in class AbstractFileObjectExceptionprotected long doGetContentSize()
throws Exception
doGetContentSize in class AbstractFileObjectExceptionprotected long doGetLastModifiedTime()
throws Exception
doGetLastModifiedTime in class AbstractFileObjectExceptionprotected InputStream doGetInputStream() throws Exception
doGetInputStream in class AbstractFileObjectExceptionprotected OutputStream doGetOutputStream(boolean bAppend) throws Exception
doGetOutputStream in class AbstractFileObjectExceptionprotected RandomAccessContent doGetRandomAccessContent(RandomAccessMode mode) throws Exception
doGetRandomAccessContent in class AbstractFileObjectExceptionCopyright © 2002–2016 WSO2. All rights reserved.