core/src/main/java/org/apache/commons/vfs2/provider/CompositeFileProvider.java
/**
     * Locates a file object, by absolute URI.
     * @param baseFile The base FileObject.
     * @param uri The file to find.
     * @param fileSystemOptions The options for the FileSystem.
     * @return A FileObject for the located file.
     * @throws FileSystemException if an error occurs.
     */
Locates a file object, by absolute URI.
@param baseFile The base FileObject.
@param uri The file to find.
@param fileSystemOptions The options for the FileSystem.
@return A FileObject for the located file.
@throws FileSystemException if an error occurs.
Locates a file object by absolute URI . @param baseFile The base FileObject . @param uri The file to find . @param fileSystemOptions The options for the FileSystem . @return A FileObject for the located file . @throws FileSystemException if an error occurs .
public FileObject findFile(final FileObject baseFile,
                               final String uri,
                               final FileSystemOptions fileSystemOptions)
        throws FileSystemException
    {
        StringBuilder buf = new StringBuilder(INITIAL_BUFSZ);
        UriParser.extractScheme(uri, buf);
        String[] schemes = getSchemes();
        for (int iterSchemes = 0; iterSchemes < schemes.length; iterSchemes++)
        {
            buf.insert(0, ":");
            buf.insert(0, schemes[iterSchemes]);
        }
        FileObject fo = getContext().getFileSystemManager().resolveFile(buf.toString(), fileSystemOptions);
        return fo;
    }
public FileObject findFile ( final FileObject baseFile , final String uri , final FileSystemOptions fileSystemOptions ) throws FileSystemException { StringBuilder buf = new StringBuilder ( INITIAL_BUFSZ ) ; UriParser . extractScheme ( uri , buf ) ; String [ ] schemes = getSchemes ( ) ; for ( int iterSchemes = 0 ; iterSchemes < schemes . length ; iterSchemes ++ ) { buf . insert ( 0 , ":" ) ; buf . insert ( 0 , schemes [ iterSchemes ] ) ; } FileObject fo = getContext ( ) . getFileSystemManager ( ) . resolveFile ( buf . toString ( ) , fileSystemOptions ) ; return fo ; }
Locates a file object, by absolute URI.
Locates a file object by absolute URI .