Java Doc for AbstractFileName.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.AbstractFileName

All known Subclasses:   org.apache.commons.vfs.provider.LayeredFileName,  org.apache.commons.vfs.provider.local.LocalFileName,  org.apache.commons.vfs.provider.GenericFileName,  org.apache.commons.vfs.impl.VirtualFileName,
AbstractFileName
abstract public class AbstractFileName implements FileName(Code)
A default file name implementation.
author:
   Adam Murdoch
version:
   $Revision: 537936 $ $Date: 2007-05-14 11:24:35 -0700 (Mon, 14 May 2007) $



Constructor Summary
public  AbstractFileName(String scheme, String absPath, FileType type)
    

Method Summary
abstract protected  voidappendRootUri(StringBuffer buffer, boolean addPassword)
     Builds the root URI for this file name.
public static  booleancheckName(String basePath, String path, NameScope scope)
     Checks whether a path fits in a particular scope of another path.
public  intcompareTo(Object obj)
    
abstract public  FileNamecreateName(String absPath, FileType type)
     Factory method for creating name instances.
protected  StringcreateURI()
    
public  booleanequals(Object obj)
     Determines if this object is equal to another.
public  StringgetBaseName()
     Returns the base name of the file.
public  intgetDepth()
     Returns the depth of this file name, within its file system.
public  StringgetExtension()
     Returns the extension of this file name.
public  StringgetFriendlyURI()
     returns a "friendly path", this is a path without a password.
public  FileNamegetParent()
     Returns the name of the parent of the file.
public  StringgetPath()
     Returns the absolute path of the file, relative to the root of the file system that the file belongs to.
public  StringgetPathDecoded()
    
public  StringgetRelativeName(FileName name)
     Converts a file name to a relative name, relative to this file name.
public  FileNamegetRoot()
    
public  StringgetRootURI()
     Returns the root URI of the file system this file belongs to.
public  StringgetScheme()
     Returns the URI scheme of this file.
public  FileTypegetType()
     Returns the requested or current type of this name.
public  StringgetURI()
     Returns the absolute URI of the file.
protected  StringgetUriTrailer()
    
public  inthashCode()
     Returns the hashcode for this name.
public  booleanisAncestor(FileName ancestor)
     Determines if another file name is an ancestor of this file name.
public  booleanisDescendent(FileName descendent)
     Determines if another file name is a descendent of this file name.
public  booleanisDescendent(FileName descendent, NameScope scope)
     Determines if another file name is a descendent of this file name.
 voidsetType(FileType type)
     sets the type of this file e.g.
public  StringtoString()
     Returns the URI of the file.


Constructor Detail
AbstractFileName
public AbstractFileName(String scheme, String absPath, FileType type)(Code)




Method Detail
appendRootUri
abstract protected void appendRootUri(StringBuffer buffer, boolean addPassword)(Code)
Builds the root URI for this file name. Note that the root URI must not end with a separator character.



checkName
public static boolean checkName(String basePath, String path, NameScope scope)(Code)
Checks whether a path fits in a particular scope of another path.
Parameters:
  basePath - An absolute, normalised path.
Parameters:
  path - An absolute, normalised path.



compareTo
public int compareTo(Object obj)(Code)
Implement Comparable
Parameters:
  obj - another abstractfilename



createName
abstract public FileName createName(String absPath, FileType type)(Code)
Factory method for creating name instances.



createURI
protected String createURI()(Code)



equals
public boolean equals(Object obj)(Code)
Determines if this object is equal to another.



getBaseName
public String getBaseName()(Code)
Returns the base name of the file.



getDepth
public int getDepth()(Code)
Returns the depth of this file name, within its file system.



getExtension
public String getExtension()(Code)
Returns the extension of this file name.



getFriendlyURI
public String getFriendlyURI()(Code)
returns a "friendly path", this is a path without a password.



getParent
public FileName getParent()(Code)
Returns the name of the parent of the file.



getPath
public String getPath()(Code)
Returns the absolute path of the file, relative to the root of the file system that the file belongs to.



getPathDecoded
public String getPathDecoded() throws FileSystemException(Code)



getRelativeName
public String getRelativeName(FileName name) throws FileSystemException(Code)
Converts a file name to a relative name, relative to this file name.



getRoot
public FileName getRoot()(Code)
find the root of the filesystem



getRootURI
public String getRootURI()(Code)
Returns the root URI of the file system this file belongs to.



getScheme
public String getScheme()(Code)
Returns the URI scheme of this file.



getType
public FileType getType()(Code)
Returns the requested or current type of this name.

The "requested" type is the one determined during resolving the name.
In this case the name is a FileType.FOLDER if it ends with an "/" else it will be a FileType.FILE

Once attached it will be changed to reflect the real type of this resource.

FileType.FOLDER or FileType.FILE



getURI
public String getURI()(Code)
Returns the absolute URI of the file.



getUriTrailer
protected String getUriTrailer()(Code)



hashCode
public int hashCode()(Code)
Returns the hashcode for this name.



isAncestor
public boolean isAncestor(FileName ancestor)(Code)
Determines if another file name is an ancestor of this file name.



isDescendent
public boolean isDescendent(FileName descendent)(Code)
Determines if another file name is a descendent of this file name.



isDescendent
public boolean isDescendent(FileName descendent, NameScope scope)(Code)
Determines if another file name is a descendent of this file name.



setType
void setType(FileType type) throws FileSystemException(Code)
sets the type of this file e.g. when it will be attached.
Parameters:
  type - FileType.FOLDER or FileType.FILE



toString
public String toString()(Code)
Returns the URI of the file.



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.