WebdavFile
public WebdavFile(HttpURL httpUrl)
throws URIException
WebdavFile
public WebdavFile(String aPath)
A WebdavFile with a relative file. Hence nobody keeps track
of a "working directory" the resulting object is only
a container for a String (pathname). You cannot do anything
usefull with an instance created this way
WebdavFile
public WebdavFile(String pathname,
String user,
String pass)
throws URIException
pathname
- complete path to elementuser
- user namepass
- password
WebdavFile
public WebdavFile(String parent,
String child,
String user,
String pass)
throws URIException
parent
- parent namechild
- name of element in parentuser
- user namepass
- password
WebdavFile
public WebdavFile(URL url,
String user,
String pass)
throws URIException
url
- file urluser
- user namepass
- password
WebdavFile
public WebdavFile(WebdavFile parent,
String child)
throws URIException
parent
- directorychild
- element in parent
canRead
public boolean canRead()
canWrite
public boolean canWrite()
compareTo
public int compareTo(File pathname)
compareTo
public int compareTo(Object o)
createNewFile
public boolean createNewFile()
createTempFile
public static File createTempFile(String prefix,
String suffix)
todo
createTempFile
public static File createTempFile(String prefix,
String suffix,
File directory)
todo
delete
public boolean delete()
deleteOnExit
public void deleteOnExit()
equals
public boolean equals(Object x)
exists
public boolean exists()
getAbsoluteFile
public File getAbsoluteFile()
getAbsolutePath
public String getAbsolutePath()
getCanonicalFile
public File getCanonicalFile()
getCanonicalPath
public String getCanonicalPath()
getName
public String getName()
getParent
public String getParent()
getParentFile
public File getParentFile()
getPass
public String getPass()
throws URIException
getPath
public String getPath()
getUser
public String getUser()
throws URIException
hashCode
public int hashCode()
isAbsolute
public boolean isAbsolute()
isDirectory
public boolean isDirectory()
isFile
public boolean isFile()
isHidden
public boolean isHidden()
lastModified
public long lastModified()
length
public long length()
list
public String[] list()
list
public String[] list(FilenameFilter filter)
listFiles
public File[] listFiles()
listFiles
public File[] listFiles(FileFilter filter)
listFiles
public File[] listFiles(FilenameFilter filter)
listRoots
public static File[] listRoots()
todo
mkdir
public boolean mkdir()
mkdirs
public boolean mkdirs()
renameTo
public boolean renameTo(File dest)
setLastModified
public boolean setLastModified(long time)
setReadOnly
public boolean setReadOnly()
toString
public String toString()
toURL
public URL toURL()
throws MalformedURLException