public class WebdavFile
extends java.io.File
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
davSeparator
Directory separator
|
static char |
davSeparatorChar
Directory separator
|
Constructor and Description |
---|
WebdavFile(org.apache.commons.httpclient.HttpURL httpUrl) |
WebdavFile(java.lang.String aPath)
A WebdavFile with a relative file.
|
WebdavFile(java.lang.String pathname,
java.lang.String user,
java.lang.String pass) |
WebdavFile(java.lang.String parent,
java.lang.String child,
java.lang.String user,
java.lang.String pass) |
WebdavFile(java.net.URL url,
java.lang.String user,
java.lang.String pass) |
WebdavFile(WebdavFile parent,
java.lang.String child) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead() |
boolean |
canWrite() |
int |
compareTo(java.io.File pathname) |
boolean |
createNewFile() |
static java.io.File |
createTempFile(java.lang.String prefix,
java.lang.String suffix)
todo
|
static java.io.File |
createTempFile(java.lang.String prefix,
java.lang.String suffix,
java.io.File directory)
todo
|
boolean |
delete() |
void |
deleteOnExit() |
boolean |
equals(java.lang.Object x) |
boolean |
exists() |
java.io.File |
getAbsoluteFile() |
java.lang.String |
getAbsolutePath() |
java.io.File |
getCanonicalFile() |
java.lang.String |
getCanonicalPath() |
java.lang.String |
getName() |
java.lang.String |
getParent() |
java.io.File |
getParentFile() |
java.lang.String |
getPass() |
java.lang.String |
getPath() |
java.lang.String |
getUser() |
int |
hashCode() |
boolean |
isAbsolute() |
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isHidden() |
long |
lastModified() |
long |
length() |
java.lang.String[] |
list() |
java.lang.String[] |
list(java.io.FilenameFilter filter) |
java.io.File[] |
listFiles() |
java.io.File[] |
listFiles(java.io.FileFilter filter) |
java.io.File[] |
listFiles(java.io.FilenameFilter filter) |
static java.io.File[] |
listRoots()
todo
|
boolean |
mkdir() |
boolean |
mkdirs() |
boolean |
renameTo(java.io.File dest) |
boolean |
setLastModified(long time) |
boolean |
setReadOnly() |
java.lang.String |
toString() |
java.net.URL |
toURL() |
public static final char davSeparatorChar
public static final java.lang.String davSeparator
public WebdavFile(WebdavFile parent, java.lang.String child) throws org.apache.commons.httpclient.URIException
parent
- directorychild
- element in parentorg.apache.commons.httpclient.URIException
public WebdavFile(java.lang.String pathname, java.lang.String user, java.lang.String pass) throws org.apache.commons.httpclient.URIException
pathname
- complete path to elementuser
- user namepass
- passwordorg.apache.commons.httpclient.URIException
public WebdavFile(java.net.URL url, java.lang.String user, java.lang.String pass) throws org.apache.commons.httpclient.URIException
url
- file urluser
- user namepass
- passwordorg.apache.commons.httpclient.URIException
public WebdavFile(java.lang.String parent, java.lang.String child, java.lang.String user, java.lang.String pass) throws org.apache.commons.httpclient.URIException
parent
- parent namechild
- name of element in parentuser
- user namepass
- passwordorg.apache.commons.httpclient.URIException
public WebdavFile(org.apache.commons.httpclient.HttpURL httpUrl) throws org.apache.commons.httpclient.URIException
httpUrl
- Webdav URLorg.apache.commons.httpclient.URIException
public WebdavFile(java.lang.String aPath)
public java.lang.String getUser() throws org.apache.commons.httpclient.URIException
org.apache.commons.httpclient.URIException
public java.lang.String getPass() throws org.apache.commons.httpclient.URIException
org.apache.commons.httpclient.URIException
public java.lang.String getName()
getName
in class java.io.File
public java.lang.String getParent()
getParent
in class java.io.File
public java.io.File getParentFile()
getParentFile
in class java.io.File
public java.lang.String getPath()
getPath
in class java.io.File
public boolean isAbsolute()
isAbsolute
in class java.io.File
public java.lang.String getAbsolutePath()
getAbsolutePath
in class java.io.File
public java.io.File getAbsoluteFile()
getAbsoluteFile
in class java.io.File
public java.lang.String getCanonicalPath()
getCanonicalPath
in class java.io.File
public java.io.File getCanonicalFile()
getCanonicalFile
in class java.io.File
public java.net.URL toURL() throws java.net.MalformedURLException
toURL
in class java.io.File
java.net.MalformedURLException
public boolean canRead()
canRead
in class java.io.File
public boolean canWrite()
canWrite
in class java.io.File
public boolean exists()
exists
in class java.io.File
public boolean isDirectory()
isDirectory
in class java.io.File
public boolean isFile()
isFile
in class java.io.File
public boolean isHidden()
isHidden
in class java.io.File
public long lastModified()
lastModified
in class java.io.File
public long length()
length
in class java.io.File
public boolean createNewFile()
createNewFile
in class java.io.File
public boolean delete()
delete
in class java.io.File
public void deleteOnExit()
deleteOnExit
in class java.io.File
public java.lang.String[] list()
list
in class java.io.File
public java.lang.String[] list(java.io.FilenameFilter filter)
list
in class java.io.File
public java.io.File[] listFiles()
listFiles
in class java.io.File
public java.io.File[] listFiles(java.io.FilenameFilter filter)
listFiles
in class java.io.File
public java.io.File[] listFiles(java.io.FileFilter filter)
listFiles
in class java.io.File
public boolean mkdir()
mkdir
in class java.io.File
public boolean mkdirs()
mkdirs
in class java.io.File
public boolean renameTo(java.io.File dest)
renameTo
in class java.io.File
public boolean setLastModified(long time)
setLastModified
in class java.io.File
public boolean setReadOnly()
setReadOnly
in class java.io.File
public static java.io.File[] listRoots()
public static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix, java.io.File directory)
public static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix)
public java.lang.String toString()
toString
in class java.io.File
public int compareTo(java.io.File pathname)
compareTo
in class java.io.File
public boolean equals(java.lang.Object x)
equals
in class java.io.File
public int hashCode()
hashCode
in class java.io.File