Java Doc for FtpFileObject.java in  » Library » Apache-commons-vfs-20070724-src » org » apache » commons » vfs » provider » ftp » 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.ftp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.vfs.provider.AbstractFileObject
      org.apache.commons.vfs.provider.ftp.FtpFileObject

FtpFileObject
public class FtpFileObject extends AbstractFileObject (Code)
An FTP file.
author:
   Adam Murdoch
version:
   $Revision: 520100 $ $Date: 2007-03-19 13:54:27 -0700 (Mon, 19 Mar 2007) $

Inner Class :class FtpInputStream extends MonitorInputStream


Constructor Summary
protected  FtpFileObject(FileName name, FtpFileSystem fileSystem, FileName rootName)
    

Method Summary
protected  voiddoAttach()
     Attaches this file object to its file resource.
protected  voiddoCreateFolder()
     Creates this file as a folder.
protected  voiddoDelete()
     Deletes the file.
protected  voiddoDetach()
     Detaches this file object from its file resource.
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()
    
protected  OutputStreamdoGetOutputStream(boolean bAppend)
     Creates an output stream to write the file content to.
protected  RandomAccessContentdoGetRandomAccessContent(RandomAccessMode mode)
    
protected  FileTypedoGetType()
     Determines the type of the file, returns null if the file does not exist.
protected  String[]doListChildren()
     Lists the children of the file.
protected  FileObject[]doListChildrenResolved()
    
protected  voiddoRename(FileObject newfile)
    
public  FileObject[]getChildren()
     Returns the file's list of children.
 FtpInputStreamgetInputStream(long filePointer)
    
 StringgetRelPath()
    
protected  voidonChange()
     Called when the type or content of this file changes.
protected  voidonChildrenChanged(FileName child, FileType newType)
     Called when the children of this file change.
public  voidrefresh()
    


Constructor Detail
FtpFileObject
protected FtpFileObject(FileName name, FtpFileSystem fileSystem, FileName rootName) throws FileSystemException(Code)




Method Detail
doAttach
protected void doAttach() throws IOException(Code)
Attaches this file object to its file resource.



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



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



doDetach
protected void doDetach()(Code)
Detaches this file object from its file resource.



doGetContentSize
protected long doGetContentSize() throws Exception(Code)
Returns the size of the file content (in bytes).



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



doGetLastModifiedTime
protected long doGetLastModifiedTime() throws Exception(Code)
get the last modified time on an ftp file
See Also:   org.apache.commons.vfs.provider.AbstractFileObject.doGetLastModifiedTime



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)



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



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



doListChildrenResolved
protected FileObject[] doListChildrenResolved() throws Exception(Code)



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



getChildren
public FileObject[] getChildren() throws FileSystemException(Code)
Returns the file's list of children. The list of children
throws:
  FileSystemException - If there was a problem listing children
See Also:   AbstractFileObject.getChildren
since:
   1.0



getInputStream
FtpInputStream getInputStream(long filePointer) throws IOException(Code)



getRelPath
String getRelPath()(Code)



onChange
protected void onChange() throws IOException(Code)
Called when the type or content of this file changes.



onChildrenChanged
protected void onChildrenChanged(FileName child, FileType newType)(Code)
Called when the children of this file change.



refresh
public void refresh() throws FileSystemException(Code)

throws:
  FileSystemException -



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.