/** * Decodes the String. * @param uri The String to decode. * @throws FileSystemException if an error occurs. */ public static void checkUriEncoding(final String uri) throws FileSystemException { decode(uri); }
/** * Decodes the String. * * @param uri The String to decode. * @throws FileSystemException if an error occurs. */ public static void checkUriEncoding(final String uri) throws FileSystemException { decode(uri); }
/** * Decodes the String. * * @param uri The String to decode. * @throws FileSystemException if an error occurs. */ public static void checkUriEncoding(final String uri) throws FileSystemException { decode(uri); }
/** * Decodes the String. * * @param uri The String to decode. * @throws FileSystemException if an error occurs. */ public static void checkUriEncoding(final String uri) throws FileSystemException { decode(uri); }
/** * Create the temporary file. * * @param parent The file to use as the parent of the file being created. * @param name The name of the file to create. * @return The File that was created. * @throws FileSystemException if an error occurs creating the file. */ protected File createFile(final File parent, final String name) throws FileSystemException { return new File(parent, UriParser.decode(name)); }
/** * Create the temporary file. * * @param parent The file to use as the parent of the file being created. * @param name The name of the file to create. * @return The File that was created. * @throws FileSystemException if an error occurs creating the file. */ protected File createFile(final File parent, final String name) throws FileSystemException { return new File(parent, UriParser.decode(name)); }
/** * Create the temporary file. * * @param parent The file to use as the parent of the file being created. * @param name The name of the file to create. * @return The File that was created. * @throws FileSystemException if an error occurs creating the file. */ protected File createFile(final File parent, final String name) throws FileSystemException { return new File(parent, UriParser.decode(name)); }
/** * Create the temporary file. * * @param parent The file to use as the parent of the file being created. * @param name The name of the file to create. * @return The File that was created. * @throws FileSystemException if an error occurs creating the file. */ protected File createFile(final File parent, final String name) throws FileSystemException { return new File(parent, UriParser.decode(name)); }
protected FtpFileObject(final AbstractFileName name, final FtpFileSystem fileSystem, final FileName rootName) throws FileSystemException { super(name, fileSystem); final String relPath = UriParser.decode(rootName.getRelativeName(name)); if (".".equals(relPath)) { // do not use the "." as path against the ftp-server // e.g. the uu.net ftp-server do a recursive listing then // this.relPath = UriParser.decode(rootName.getPath()); // this.relPath = "."; this.relPath = null; } else { this.relPath = relPath; } }
/** * Returns the decoded path. * * @return The decoded path String. * @throws FileSystemException If an error occurs. */ @Override public String getPathDecoded() throws FileSystemException { if (decodedAbsPath == null) { decodedAbsPath = UriParser.decode(getPath()); } return decodedAbsPath; }
/** * Returns the decoded path. * * @return The decoded path String. * @throws FileSystemException If an error occurs. */ @Override public String getPathDecoded() throws FileSystemException { if (decodedAbsPath == null) { decodedAbsPath = UriParser.decode(getPath()); } return decodedAbsPath; }
protected SftpFileObject(final AbstractFileName name, final SftpFileSystem fileSystem) throws FileSystemException { super(name, fileSystem); relPath = UriParser.decode(fileSystem.getRootName().getRelativeName( name)); }
/** * Returns the decoded URI of the file. * * @return the FileName as a URI. */ @Override public String toString() { try { return UriParser.decode(super.getURI()); } catch (final FileSystemException e) { return super.getURI(); } }
protected SftpFileObject(final AbstractFileName name, final SftpFileSystem fileSystem) throws FileSystemException { super(name, fileSystem); relPath = UriParser.decode(fileSystem.getRootName().getRelativeName(name)); }
protected SftpFileObject(final AbstractFileName name, final SftpFileSystem fileSystem) throws FileSystemException { super(name, fileSystem); relPath = UriParser.decode(fileSystem.getRootName().getRelativeName(name)); }
/** * Returns the decoded URI of the file. * * @return the FileName as a URI. */ @Override public String toString() { try { return UriParser.decode(super.getURI()); } catch (final FileSystemException e) { return super.getURI(); } }
protected SftpFileObject(final AbstractFileName name, final SftpFileSystem fileSystem) throws FileSystemException { super(name, fileSystem); relPath = UriParser.decode(fileSystem.getRootName().getRelativeName(name)); }
/** * Tests resolution of an absolute file name. */ public void testHashURL() throws Exception { final FileObject file = getReadFolder().resolveFile("test-hash-#test.txt"); assertEquals(file.toString(), UriParser.decode(file.getURL().toString())); } }
/** * Tests resolution of an absolute file name. */ public void testHashURL() throws Exception { final FileObject file = getReadFolder().resolveFile("test-hash-#test.txt"); assertEquals(file.toString(), UriParser.decode(file.getURL().toString())); } }
/** * Tests resolution of an absolute file name. */ public void testHashURL() throws Exception { final FileObject file = getReadFolder().resolveFile("test-hash-#test.txt"); assertEquals(file.toString(), UriParser.decode(file.getURL().toString())); } }