|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlhmc.files.UrlUtils
public class UrlUtils
UrlUtils helps the url files that can contain a File or a SmbFile.
Constructor Summary | |
---|---|
UrlUtils()
Constructs the UrlUtils class. |
|
UrlUtils(int filesystemLocation)
Constructs the UrlUtils class specifying the filesystem location. |
|
UrlUtils(java.net.URL url)
Constructs the UrlUtils and searches wich filesystem location has the URL. |
Method Summary | |
---|---|
java.net.URL |
createURL(java.lang.String path)
Creates an URL file from a file path |
java.lang.String |
getAbsolutePath(java.net.URL url)
Returns the absolute pathname string of this abstract pathname. |
java.io.File |
getFile(java.net.URL url)
Extracts the File of a URL. |
java.net.URL[] |
getFilteredUrls(java.net.URL rootFile,
java.io.FileFilter customFileFilter)
Returns an array of url files and directories that satisfy the specified filter. |
int |
getLocation()
Gets the location attribute (remote or local). |
int |
getLocation(java.net.URL url)
Gets the location (remote or local) of the file. |
java.lang.String |
getPath(java.net.URL url)
Converts the url file abstract pathname into a pathname string. |
SmbFile |
getSmbFile(java.net.URL url)
Extracts the SmbFile of a URL. |
java.lang.String |
getUrlName(java.net.URL url)
Gets the name of the file. |
java.net.URL |
getURLParent(java.net.URL url)
Returns the pathname string of this abstract pathname's parent, or null if this pathname does not name a parent directory. |
boolean |
isUrlDirectory(java.net.URL url)
Tests whether the file is a directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlUtils()
public UrlUtils(int filesystemLocation)
filesystemLocation
- the filesystem location.public UrlUtils(java.net.URL url)
url
- the url file.Method Detail |
---|
public java.lang.String getUrlName(java.net.URL url)
url
- the url file.
public int getLocation(java.net.URL url)
url
- the url file.
public int getLocation()
public boolean isUrlDirectory(java.net.URL url)
public SmbFile getSmbFile(java.net.URL url)
url
- the url file.
public java.io.File getFile(java.net.URL url)
url
- the url file.
public java.net.URL getURLParent(java.net.URL url)
url
- the url file.
public java.lang.String getAbsolutePath(java.net.URL url)
url
- the url file.
public java.lang.String getPath(java.net.URL url)
url
- the url file.
public java.net.URL[] getFilteredUrls(java.net.URL rootFile, java.io.FileFilter customFileFilter)
rootFile
- the url directory to list.customFileFilter
- the file filter.
public java.net.URL createURL(java.lang.String path)
path
- the file path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |