Class ResourceFileName
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileName
org.apache.commons.vfs2.provider.res.ResourceFileName
- All Implemented Interfaces:
- Comparable<FileName>,- FileName
A resource file URI.
- 
Field SummaryFields inherited from interface org.apache.commons.vfs2.FileNameEMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedResourceFileName(String scheme, String path, FileType type) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappendRootUri(StringBuilder buffer, boolean addPassword) Builds the root URI for this file name.createName(String path, FileType type) Factory method for creating name instances.Returns the root URI of the file system this file belongs to.toString()Returns the decoded URI of the file.Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileNamecheckName, compareTo, createURI, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, isFile
- 
Constructor Details- 
ResourceFileNameConstructs a new instance.- Parameters:
- scheme- The scheme.
- path- the absolute path, maybe empty or null.
- type- the file type.
 
 
- 
- 
Method Details- 
appendRootUriBuilds the root URI for this file name.- Specified by:
- appendRootUriin class- AbstractFileName
- Parameters:
- buffer- A StringBuilder to use to construct the URI.
- addPassword- true if the password should be added, false otherwise.
 
- 
createNameFactory method for creating name instances.- Specified by:
- createNamein class- AbstractFileName
- Parameters:
- path- The file path.
- type- The file type.
- Returns:
- The FileName.
 
- 
getRootURIDescription copied from class:AbstractFileNameReturns the root URI of the file system this file belongs to.- Specified by:
- getRootURIin interface- FileName
- Overrides:
- getRootURIin class- AbstractFileName
- Returns:
- The URI of the root.
 
- 
toStringReturns the decoded URI of the file.- Overrides:
- toStringin class- AbstractFileName
- Returns:
- the FileName as a URI.
 
 
-