core/src/main/java/org/apache/commons/vfs2/provider/LayeredFileNameParser.java
/**
     * Parse the base and name into a FileName.
     * @param context The component context.
     * @param base The base FileName.
     * @param filename The target file name.
     * @return The constructed FileName.
     * @throws FileSystemException if an error occurs.
     */
Parse the base and name into a FileName.
@param context The component context.
@param base The base FileName.
@param filename The target file name.
@return The constructed FileName.
@throws FileSystemException if an error occurs.
Parse the base and name into a FileName . @param context The component context . @param base The base FileName . @param filename The target file name . @return The constructed FileName . @throws FileSystemException if an error occurs .
public FileName parseUri(final VfsComponentContext context, FileName base, final String filename)
            throws FileSystemException
    {
        final StringBuilder name = new StringBuilder();
        final String scheme = UriParser.extractScheme(filename, name);
        final String rootUriName = extractRootName(name);
        FileName rootUri = null;
        if (rootUriName != null)
        {
            rootUri = context.parseURI(rootUriName);
        }
        UriParser.canonicalizePath(name, 0, name.length(), this);
        UriParser.fixSeparators(name);
        FileType fileType = UriParser.normalisePath(name);
        final String path = name.toString();
        return new LayeredFileName(scheme, rootUri, path, fileType);
    }
public FileName parseUri ( final VfsComponentContext context , FileName base , final String filename ) throws FileSystemException { final StringBuilder name = new StringBuilder ( ) ; final String scheme = UriParser . extractScheme ( filename , name ) ; final String rootUriName = extractRootName ( name ) ; FileName rootUri = null ; if ( rootUriName != null ) { rootUri = context . parseURI ( rootUriName ) ; } UriParser . canonicalizePath ( name , 0 , name . length ( ) , this ) ; UriParser . fixSeparators ( name ) ; FileType fileType = UriParser . normalisePath ( name ) ; final String path = name . toString ( ) ; return new LayeredFileName ( scheme , rootUri , path , fileType ) ; }
Parse the base and name into a FileName.
Parse the base and name into a FileName .
// Extract the scheme // Extract the Layered file URI // Decode and normalise the path