Java Doc for FTPFile.java in  » Net » edtftpj » com » enterprisedt » net » 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 » Net » edtftpj » com.enterprisedt.net.ftp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.enterprisedt.net.ftp.FTPFile

FTPFile
public class FTPFile (Code)
Represents a remote file (implementation)
author:
   Bruce Blackshaw
version:
   $Revision: 1.17 $


Field Summary
final public static  intUNIX
    
final public static  intUNKNOWN
    
final public static  intVMS
    
final public static  intWINDOWS
    
protected  Datecreated
    
final protected static  StringcvsId
    
protected  Stringgroup
    
protected  booleanisDir
    
protected  booleanisLink
    
protected  DatelastModified
    
protected  intlinkCount
    
protected  Stringlinkedname
    
protected  Stringname
    
protected  Stringowner
    
protected  Stringpath
    
protected  Stringpermissions
    
protected  Stringraw
    
protected  longsize
    

Constructor Summary
public  FTPFile(int type, String raw, String name, long size, boolean isDir, Date lastModified)
    
public  FTPFile(String raw, String name, long size, boolean isDir, Date lastModified)
    
public  FTPFile(String raw)
    

Method Summary
public  Datecreated()
     Get the created date for the file.
public  StringgetGroup()
    
public  intgetLinkCount()
    
public  StringgetLinkedname()
    
public  StringgetName()
    
public  StringgetOwner()
    
public  StringgetPath()
    
public  StringgetPermissions()
    
public  StringgetRaw()
    
public  intgetType()
    
public  booleanisDir()
    
public  booleanisLink()
    
public  DatelastModified()
    
public  FTPFile[]listFiles()
    
 voidsetChildren(FTPFile[] children)
    
public  voidsetCreated(Date date)
    
public  voidsetDir(boolean isDir)
    
public  voidsetGroup(String group)
    
public  voidsetLastModified(Date date)
    
public  voidsetLink(boolean isLink)
    
public  voidsetLinkCount(int linkCount)
    
public  voidsetLinkedName(String linkedname)
    
public  voidsetName(String name)
    
public  voidsetOwner(String owner)
    
public  voidsetPath(String path)
    
public  voidsetPermissions(String permissions)
    
public  voidsetSize(long size)
    
public  longsize()
    
public  StringtoString()
    

Field Detail
UNIX
final public static int UNIX(Code)
UNIX type



UNKNOWN
final public static int UNKNOWN(Code)
Unknown remote server type



VMS
final public static int VMS(Code)
VMS type



WINDOWS
final public static int WINDOWS(Code)
Windows type



created
protected Date created(Code)
Created time



cvsId
final protected static String cvsId(Code)
Revision control id



group
protected String group(Code)
Group if known



isDir
protected boolean isDir(Code)
Is this a directory?



isLink
protected boolean isLink(Code)
Is this file a symbolic link?



lastModified
protected Date lastModified(Code)
Last modified



linkCount
protected int linkCount(Code)
Number of links to file



linkedname
protected String linkedname(Code)
Name of file this is linked to



name
protected String name(Code)
File/dir name



owner
protected String owner(Code)
Owner if known



path
protected String path(Code)
Directory if known



permissions
protected String permissions(Code)
Permission bits string



raw
protected String raw(Code)
Raw string



size
protected long size(Code)
Size of file




Constructor Detail
FTPFile
public FTPFile(int type, String raw, String name, long size, boolean isDir, Date lastModified)(Code)
Constructor
Parameters:
  type - type of file
Parameters:
  raw - raw string returned from server
Parameters:
  name - name of file
Parameters:
  size - size of file
Parameters:
  isDir - true if a directory
Parameters:
  lastModified - last modified timestamp



FTPFile
public FTPFile(String raw, String name, long size, boolean isDir, Date lastModified)(Code)
Constructor
Parameters:
  raw - raw string returned from server
Parameters:
  name - name of file
Parameters:
  size - size of file
Parameters:
  isDir - true if a directory
Parameters:
  lastModified - last modified timestamp



FTPFile
public FTPFile(String raw)(Code)
Constructor
Parameters:
  raw - raw string returned from server




Method Detail
created
public Date created()(Code)
Get the created date for the file. This is not supported by many servers, e.g. Unix does not record the created date of a file. Returns the created date.



getGroup
public String getGroup()(Code)
Returns the group.



getLinkCount
public int getLinkCount()(Code)
Returns the number of links to the file



getLinkedname
public String getLinkedname()(Code)
Returns the linkedname.



getName
public String getName()(Code)
Returns the name.



getOwner
public String getOwner()(Code)
Returns the owner.



getPath
public String getPath()(Code)



getPermissions
public String getPermissions()(Code)
Returns the permissions.



getRaw
public String getRaw()(Code)
Returns the raw server string.



getType
public int getType()(Code)
Get the type of file, i.e UNIX the integer type of the file



isDir
public boolean isDir()(Code)
Returns the isDir.



isLink
public boolean isLink()(Code)
Returns true if file is a symlink



lastModified
public Date lastModified()(Code)
Returns the lastModified date.



listFiles
public FTPFile[] listFiles()(Code)
Returns an array of FTPFile objects denoting the files and directories in this directory FTPFile array



setChildren
void setChildren(FTPFile[] children)(Code)

Parameters:
  children -



setCreated
public void setCreated(Date date)(Code)
Set the created date
Parameters:
  date -



setDir
public void setDir(boolean isDir)(Code)

Parameters:
  isDir - The isDir to set.



setGroup
public void setGroup(String group)(Code)

Parameters:
  group - The group to set.



setLastModified
public void setLastModified(Date date)(Code)
Set the last modified date
Parameters:
  date - last modified date



setLink
public void setLink(boolean isLink)(Code)

Parameters:
  isLink - The isLink to set.



setLinkCount
public void setLinkCount(int linkCount)(Code)

Parameters:
  linkCount - new link count



setLinkedName
public void setLinkedName(String linkedname)(Code)

Parameters:
  linkedname - The linked name to set.



setName
public void setName(String name)(Code)
Set the name of the file
Parameters:
  name - name of file



setOwner
public void setOwner(String owner)(Code)

Parameters:
  owner - The owner to set.



setPath
public void setPath(String path)(Code)



setPermissions
public void setPermissions(String permissions)(Code)

Parameters:
  permissions - The permissions to set.



setSize
public void setSize(long size)(Code)



size
public long size()(Code)
Returns the size.



toString
public String toString()(Code)
string representation



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.