public class GenericURLFileName extends GenericFileName
| Modifier and Type | Field and Description |
|---|---|
private static int |
BUFFER_SIZE |
private java.lang.String |
queryString |
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR| Constructor and Description |
|---|
GenericURLFileName(java.lang.String scheme,
java.lang.String hostName,
int port,
int defaultPort,
java.lang.String userName,
java.lang.String password,
java.lang.String path,
FileType type,
java.lang.String queryString) |
| Modifier and Type | Method and Description |
|---|---|
FileName |
createName(java.lang.String absPath,
FileType type)
Creates a FileName.
|
protected java.lang.String |
createURI()
Appends query string to the uri.
|
java.lang.String |
getPathQuery()
Gets the path and query string e.g.
|
java.lang.String |
getPathQueryEncoded(java.lang.String charset)
Gets the path encoded suitable for url like file system e.g.
|
java.lang.String |
getQueryString()
Gets the query string.
|
java.lang.String |
getURIEncoded(java.lang.String charset)
Encodes a URI.
|
appendCredentials, appendRootUri, getDefaultPort, getHostName, getPassword, getPort, getUserNamecheckName, compareTo, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, isFile, setType, toStringprivate static final int BUFFER_SIZE
private final java.lang.String queryString
public GenericURLFileName(java.lang.String scheme,
java.lang.String hostName,
int port,
int defaultPort,
java.lang.String userName,
java.lang.String password,
java.lang.String path,
FileType type,
java.lang.String queryString)
public java.lang.String getQueryString()
public java.lang.String getPathQuery()
public java.lang.String getPathQueryEncoded(java.lang.String charset)
throws java.net.URISyntaxException,
FileSystemException
charset - the charset used for the path encodingjava.net.URISyntaxException - If an error occurs encoding the URI.FileSystemException - If some other error occurs.public FileName createName(java.lang.String absPath, FileType type)
createName in class GenericFileNameabsPath - The absolute path.type - The FileType.protected java.lang.String createURI()
createURI in class AbstractFileNamepublic java.lang.String getURIEncoded(java.lang.String charset)
throws FileSystemException,
java.net.URISyntaxException
charset - The character set.FileSystemException - if some other exception occurs.java.net.URISyntaxException - if an exception occurs encoding the URI.