org.apache.commons.vfs2.provider
Class SmpFileObject

java.lang.Object
  extended by org.apache.commons.vfs2.provider.AbstractFileObject
      extended by org.apache.commons.vfs2.provider.SmpFileObject
All Implemented Interfaces:
org.apache.commons.vfs2.FileObject

public class SmpFileObject
extends org.apache.commons.vfs2.provider.AbstractFileObject

An Smp file.

Author:
Commons VFS team

Constructor Summary
protected SmpFileObject(org.apache.commons.vfs2.provider.AbstractFileName name, SmpFileSystem fileSystem, org.apache.commons.vfs2.FileName rootName)
           
 
Method Summary
protected  org.apache.commons.vfs2.FileContent doCreateFileContent()
           
protected  long doGetContentSize()
           
protected  InputStream doGetInputStream()
           
protected  org.apache.commons.vfs2.FileType doGetType()
           
protected  String[] doListChildren()
           
 URL getURL()
           
 void sleepFiveSec()
           
 
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileObject
canRenameTo, childrenChanged, close, copyFrom, createFile, createFolder, delete, delete, doAttach, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, doGetLastModifiedTime, doGetOutputStream, doGetRandomAccessContent, doIsHidden, doIsReadable, doIsSameFile, doIsWriteable, doListChildrenResolved, doRemoveAttribute, doRename, doSetAttribute, doSetLastModifiedTime, endOutput, exists, finalize, findFiles, findFiles, getChild, getChildren, getContent, getFileContentInfoFactory, getFileOperations, getFileSystem, getInputStream, getName, getOutputStream, getOutputStream, getParent, getRandomAccessContent, getType, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isHidden, isReadable, isSameFile, isWriteable, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SmpFileObject

protected SmpFileObject(org.apache.commons.vfs2.provider.AbstractFileName name,
                        SmpFileSystem fileSystem,
                        org.apache.commons.vfs2.FileName rootName)
                 throws org.apache.commons.vfs2.FileSystemException
Throws:
org.apache.commons.vfs2.FileSystemException
Method Detail

getURL

public URL getURL()
           throws org.apache.commons.vfs2.FileSystemException
Specified by:
getURL in interface org.apache.commons.vfs2.FileObject
Overrides:
getURL in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
org.apache.commons.vfs2.FileSystemException

doGetType

protected org.apache.commons.vfs2.FileType doGetType()
                                              throws Exception
Specified by:
doGetType in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
Exception

doListChildren

protected String[] doListChildren()
                           throws Exception
Specified by:
doListChildren in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
Exception

doGetContentSize

protected long doGetContentSize()
                         throws Exception
Specified by:
doGetContentSize in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
Exception

sleepFiveSec

public void sleepFiveSec()

doCreateFileContent

protected org.apache.commons.vfs2.FileContent doCreateFileContent()
                                                           throws org.apache.commons.vfs2.FileSystemException
Overrides:
doCreateFileContent in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
org.apache.commons.vfs2.FileSystemException

doGetInputStream

protected InputStream doGetInputStream()
                                throws Exception
Specified by:
doGetInputStream in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
Exception


Copyright © 2014. All Rights Reserved.