|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.File
org.apache.webdav.lib.WebdavFile
public class WebdavFile
Implements a file for WebDav
Field Summary | |
---|---|
static java.lang.String |
davSeparator
Directory separator |
static char |
davSeparatorChar
Directory separator |
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
---|---|
WebdavFile(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)
|
Method Summary | |
---|---|
boolean |
canRead()
|
boolean |
canWrite()
|
int |
compareTo(java.io.File pathname)
|
int |
compareTo(java.lang.Object o)
|
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()
|
Methods inherited from class java.io.File |
---|
canExecute, getFreeSpace, getTotalSpace, getUsableSpace, setExecutable, setExecutable, setReadable, setReadable, setWritable, setWritable, toURI |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char davSeparatorChar
public static final java.lang.String davSeparator
Constructor Detail |
---|
public WebdavFile(WebdavFile parent, java.lang.String child) throws URIException
parent
- directorychild
- element in parent
URIException
public WebdavFile(java.lang.String pathname, java.lang.String user, java.lang.String pass) throws URIException
pathname
- complete path to elementuser
- user namepass
- password
URIException
public WebdavFile(java.net.URL url, java.lang.String user, java.lang.String pass) throws URIException
url
- file urluser
- user namepass
- password
URIException
public WebdavFile(java.lang.String parent, java.lang.String child, java.lang.String user, java.lang.String pass) throws URIException
parent
- parent namechild
- name of element in parentuser
- user namepass
- password
URIException
public WebdavFile(HttpURL httpUrl) throws URIException
httpUrl
- Webdav URL
URIException
public WebdavFile(java.lang.String aPath)
Method Detail |
---|
public java.lang.String getUser() throws URIException
URIException
public java.lang.String getPass() throws URIException
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 interface java.lang.Comparable<java.io.File>
compareTo
in class java.io.File
public int compareTo(java.lang.Object o)
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |