URLFileName file = (URLFileName) sftpFilenameParser.parseUri( null, null, vfsUrl );
/** * Parses an absolute URI. * * @param base The base file - if null the {@code uri} needs to be absolute * @param uri The URI to parse. * @return The FileName. * @throws FileSystemException if an error occurs. */ @Override public FileName parseUri(final FileName base, final String uri) throws FileSystemException { if (getFileNameParser() != null) { return getFileNameParser().parseUri(getContext(), base, uri); } throw new FileSystemException("vfs.provider/filename-parser-missing.error"); } }
/** * Parses an absolute URI. * * @param base The base file - if null the {@code uri} needs to be absolute * @param uri The URI to parse. * @return The FileName. * @throws FileSystemException if an error occurs. */ @Override public FileName parseUri(final FileName base, final String uri) throws FileSystemException { if (getFileNameParser() != null) { return getFileNameParser().parseUri(getContext(), base, uri); } throw new FileSystemException("vfs.provider/filename-parser-missing.error"); } }
/** * Parses an absolute URI. * * @param base The base file - if null the {@code uri} needs to be absolute * @param uri The URI to parse. * @return The FileName. * @throws FileSystemException if an error occurs. */ @Override public FileName parseUri(final FileName base, final String uri) throws FileSystemException { if (getFileNameParser() != null) { return getFileNameParser().parseUri(getContext(), base, uri); } throw new FileSystemException("vfs.provider/filename-parser-missing.error"); } }
/** * Parses an absolute URI. * * @param base The base file - if null the {@code uri} needs to be absolute * @param uri The URI to parse. * @return The FileName. * @throws FileSystemException if an error occurs. */ @Override public FileName parseUri(final FileName base, final String uri) throws FileSystemException { if (getFileNameParser() != null) { return getFileNameParser().parseUri(getContext(), base, uri); } throw new FileSystemException("vfs.provider/filename-parser-missing.error"); }