Java Doc for DelegateFileObject.java in  » Library » Apache-commons-vfs-20070724-src » org » apache » commons » vfs » provider » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache commons vfs 20070724 src » org.apache.commons.vfs.provider 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.vfs.provider.AbstractFileObject
      org.apache.commons.vfs.provider.DelegateFileObject

DelegateFileObject
public class DelegateFileObject extends AbstractFileObject implements FileListener(Code)
A file backed by another file.
author:
   Adam Murdoch
author:
   Gary D. Gregory
version:
   $Revision: 537958 $ $Date: 2007-05-14 12:37:15 -0700 (Mon, 14 May 2007) $



Constructor Summary
public  DelegateFileObject(FileName name, AbstractFileSystem fileSystem, FileObject file)
    

Method Summary
public  voidattachChild(FileName baseName, FileType type)
     Adds a child to this file.
public  voidclose()
    
protected  voiddoCreateFolder()
     Creates this file as a folder.
protected  voiddoDelete()
     Deletes the file.
protected  MapdoGetAttributes()
     Returns the attributes of this file.
protected  Certificate[]doGetCertificates()
     Returns the certificates of this file.
protected  FileContentInfodoGetContentInfo()
    
protected  longdoGetContentSize()
     Returns the size of the file content (in bytes).
protected  InputStreamdoGetInputStream()
     Creates an input stream to read the file content from.
protected  longdoGetLastModifiedTime()
     Returns the last-modified time of this file.
protected  OutputStreamdoGetOutputStream(boolean bAppend)
     Creates an output stream to write the file content to.
protected  RandomAccessContentdoGetRandomAccessContent(RandomAccessMode mode)
     Creates access to the file for random i/o.
protected  FileTypedoGetType()
     Determines the type of the file, returns null if the file does not exist.
protected  booleandoIsHidden()
     Determines if this file is hidden.
protected  booleandoIsReadable()
     Determines if this file can be read.
protected  booleandoIsWriteable()
     Determines if this file can be written to.
protected  String[]doListChildren()
     Lists the children of the file.
protected  voiddoRemoveAttribute(String atttrName)
     Removes an attribute of this file.
protected  voiddoRename(FileObject newFile)
     Renames the file.
protected  voiddoSetAttribute(String atttrName, Object value)
     Sets an attribute of this file.
protected  booleandoSetLastModTime(long modtime)
     Sets the last-modified time of this file.
public  voidfileChanged(FileChangeEvent event)
     Called when a file is changed.
public  voidfileCreated(FileChangeEvent event)
     Called when a file is created.
public  voidfileDeleted(FileChangeEvent event)
     Called when a file is deleted.
public  FileObjectgetDelegateFile()
    
public  voidrefresh()
    
public  voidsetFile(FileObject file)
     Attaches or detaches the target file.


Constructor Detail
DelegateFileObject
public DelegateFileObject(FileName name, AbstractFileSystem fileSystem, FileObject file) throws FileSystemException(Code)




Method Detail
attachChild
public void attachChild(FileName baseName, FileType type) throws Exception(Code)
Adds a child to this file.



close
public void close() throws FileSystemException(Code)
Close the delegated file



doCreateFolder
protected void doCreateFolder() throws Exception(Code)
Creates this file as a folder.



doDelete
protected void doDelete() throws Exception(Code)
Deletes the file.



doGetAttributes
protected Map doGetAttributes() throws Exception(Code)
Returns the attributes of this file.



doGetCertificates
protected Certificate[] doGetCertificates() throws Exception(Code)
Returns the certificates of this file.



doGetContentInfo
protected FileContentInfo doGetContentInfo() throws Exception(Code)



doGetContentSize
protected long doGetContentSize() throws Exception(Code)
Returns the size of the file content (in bytes). Is only called if DelegateFileObject.doGetType returns FileType.FILE .



doGetInputStream
protected InputStream doGetInputStream() throws Exception(Code)
Creates an input stream to read the file content from.



doGetLastModifiedTime
protected long doGetLastModifiedTime() throws Exception(Code)
Returns the last-modified time of this file.



doGetOutputStream
protected OutputStream doGetOutputStream(boolean bAppend) throws Exception(Code)
Creates an output stream to write the file content to.



doGetRandomAccessContent
protected RandomAccessContent doGetRandomAccessContent(RandomAccessMode mode) throws Exception(Code)
Creates access to the file for random i/o.



doGetType
protected FileType doGetType() throws FileSystemException(Code)
Determines the type of the file, returns null if the file does not exist.



doIsHidden
protected boolean doIsHidden() throws FileSystemException(Code)
Determines if this file is hidden.



doIsReadable
protected boolean doIsReadable() throws FileSystemException(Code)
Determines if this file can be read.



doIsWriteable
protected boolean doIsWriteable() throws FileSystemException(Code)
Determines if this file can be written to.



doListChildren
protected String[] doListChildren() throws Exception(Code)
Lists the children of the file.



doRemoveAttribute
protected void doRemoveAttribute(String atttrName) throws Exception(Code)
Removes an attribute of this file.



doRename
protected void doRename(FileObject newFile) throws Exception(Code)
Renames the file.



doSetAttribute
protected void doSetAttribute(String atttrName, Object value) throws Exception(Code)
Sets an attribute of this file.



doSetLastModTime
protected boolean doSetLastModTime(long modtime) throws Exception(Code)
Sets the last-modified time of this file.



fileChanged
public void fileChanged(FileChangeEvent event) throws Exception(Code)
Called when a file is changed.

This will only happen if you monitor the file using org.apache.commons.vfs.FileMonitor .




fileCreated
public void fileCreated(FileChangeEvent event) throws Exception(Code)
Called when a file is created.



fileDeleted
public void fileDeleted(FileChangeEvent event) throws Exception(Code)
Called when a file is deleted.



getDelegateFile
public FileObject getDelegateFile()(Code)
get access to the delegated file



refresh
public void refresh() throws FileSystemException(Code)
refresh file informations



setFile
public void setFile(FileObject file) throws Exception(Code)
Attaches or detaches the target file.



Methods inherited from org.apache.commons.vfs.provider.AbstractFileObject
public boolean canRenameTo(FileObject newfile)(Code)(Java Doc)
protected void childrenChanged() throws Exception(Code)(Java Doc)
protected void childrenChanged(FileName childName, FileType newType) throws Exception(Code)(Java Doc)
public void close() throws FileSystemException(Code)(Java Doc)
public void copyFrom(FileObject file, FileSelector selector) throws FileSystemException(Code)(Java Doc)
public void createFile() throws FileSystemException(Code)(Java Doc)
public void createFolder() throws FileSystemException(Code)(Java Doc)
public boolean delete() throws FileSystemException(Code)(Java Doc)
public int delete(FileSelector selector) throws FileSystemException(Code)(Java Doc)
protected void doAttach() throws Exception(Code)(Java Doc)
protected FileContent doCreateFileContent() throws FileSystemException(Code)(Java Doc)
protected void doCreateFolder() throws Exception(Code)(Java Doc)
protected void doDelete() throws Exception(Code)(Java Doc)
protected void doDetach() throws Exception(Code)(Java Doc)
protected Map doGetAttributes() throws Exception(Code)(Java Doc)
protected Certificate[] doGetCertificates() throws Exception(Code)(Java Doc)
abstract protected long doGetContentSize() throws Exception(Code)(Java Doc)
abstract protected InputStream doGetInputStream() throws Exception(Code)(Java Doc)
protected long doGetLastModifiedTime() throws Exception(Code)(Java Doc)
protected OutputStream doGetOutputStream(boolean bAppend) throws Exception(Code)(Java Doc)
protected RandomAccessContent doGetRandomAccessContent(RandomAccessMode mode) throws Exception(Code)(Java Doc)
abstract protected FileType doGetType() throws Exception(Code)(Java Doc)
protected boolean doIsHidden() throws Exception(Code)(Java Doc)
protected boolean doIsReadable() throws Exception(Code)(Java Doc)
protected boolean doIsSameFile(FileObject destFile) throws FileSystemException(Code)(Java Doc)
protected boolean doIsWriteable() throws Exception(Code)(Java Doc)
abstract protected String[] doListChildren() throws Exception(Code)(Java Doc)
protected FileObject[] doListChildrenResolved() throws Exception(Code)(Java Doc)
protected void doRemoveAttribute(String atttrName) throws Exception(Code)(Java Doc)
protected void doRename(FileObject newfile) throws Exception(Code)(Java Doc)
protected void doSetAttribute(String atttrName, Object value) throws Exception(Code)(Java Doc)
protected boolean doSetLastModTime(long modtime) throws Exception(Code)(Java Doc)
protected void doSetLastModifiedTime(long modtime) throws Exception(Code)(Java Doc)
protected void endOutput() throws Exception(Code)(Java Doc)
public boolean exists() throws FileSystemException(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
public FileObject[] findFiles(FileSelector selector) throws FileSystemException(Code)(Java Doc)
public void findFiles(FileSelector selector, boolean depthwise, List selected) throws FileSystemException(Code)(Java Doc)
public FileObject getChild(String name) throws FileSystemException(Code)(Java Doc)
public FileObject[] getChildren() throws FileSystemException(Code)(Java Doc)
public FileContent getContent() throws FileSystemException(Code)(Java Doc)
protected FileContentInfoFactory getFileContentInfoFactory()(Code)(Java Doc)
public FileOperations getFileOperations() throws FileSystemException(Code)(Java Doc)
public FileSystem getFileSystem()(Code)(Java Doc)
public InputStream getInputStream() throws FileSystemException(Code)(Java Doc)
public FileName getName()(Code)(Java Doc)
public OutputStream getOutputStream() throws FileSystemException(Code)(Java Doc)
public OutputStream getOutputStream(boolean bAppend) throws FileSystemException(Code)(Java Doc)
public FileObject getParent() throws FileSystemException(Code)(Java Doc)
public RandomAccessContent getRandomAccessContent(RandomAccessMode mode) throws FileSystemException(Code)(Java Doc)
public FileType getType() throws FileSystemException(Code)(Java Doc)
public URL getURL() throws FileSystemException(Code)(Java Doc)
protected void handleChanged() throws Exception(Code)(Java Doc)
protected void handleCreate(FileType newType) throws Exception(Code)(Java Doc)
protected void handleDelete() throws Exception(Code)(Java Doc)
public void holdObject(Object strongRef)(Code)(Java Doc)
protected void injectType(FileType fileType)(Code)(Java Doc)
public boolean isAttached()(Code)(Java Doc)
public boolean isContentOpen()(Code)(Java Doc)
public boolean isHidden() throws FileSystemException(Code)(Java Doc)
public boolean isReadable() throws FileSystemException(Code)(Java Doc)
protected boolean isSameFile(FileObject destFile) throws FileSystemException(Code)(Java Doc)
public boolean isWriteable() throws FileSystemException(Code)(Java Doc)
public void moveTo(FileObject destFile) throws FileSystemException(Code)(Java Doc)
protected void notifyAllStreamsClosed()(Code)(Java Doc)
protected void onChange() throws Exception(Code)(Java Doc)
protected void onChildrenChanged(FileName child, FileType newType) throws Exception(Code)(Java Doc)
public void refresh() throws FileSystemException(Code)(Java Doc)
public FileObject resolveFile(String name, NameScope scope) throws FileSystemException(Code)(Java Doc)
public FileObject resolveFile(String path) throws FileSystemException(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.