|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.sourceforge.ganttproject.document.URLDocument
This class implements the interface Document for file access on HTTP-servers and WebDAV-enabled-servers.
| Constructor Summary | |
URLDocument(java.lang.String url,
java.lang.String user,
java.lang.String pass)
|
|
| Method Summary | |
boolean |
canRead()
Checks, wether the document is readable. |
boolean |
canWrite()
Checks, wether the document is writable. |
java.lang.String |
getDescription()
Gets the description of the document (can be displayed in the application's titlebar). |
java.lang.String |
getFilePath()
Gets the path to the document, if it is a file on a local file system (can be used to initialize a JFileChooser). |
java.io.InputStream |
getInputStream()
Gets an InputStream, that allows to read from the document. |
java.io.OutputStream |
getOutputStream()
Gets an OutputStream, that allows to write to the document. |
java.lang.String |
getPassword()
Gets the password used to authenticate to the storage container |
java.lang.String |
getPath()
Gets the path to the document. |
java.lang.String |
getURLPath()
Gets the path to the document, if it is a file on a server (can be used to initialize an UrlChooser). |
java.lang.String |
getUsername()
Gets the username used to authenticate to the storage container |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public URLDocument(java.lang.String url,
java.lang.String user,
java.lang.String pass)
| Method Detail |
public java.lang.String getDescription()
Document
getDescription in interface Documentpublic boolean canRead()
Document
canRead in interface Documentpublic boolean canWrite()
Document
canWrite in interface Document
public java.io.InputStream getInputStream()
throws java.io.IOException
Document
getInputStream in interface Documentjava.io.IOException
public java.io.OutputStream getOutputStream()
throws java.io.IOException
Document
getOutputStream in interface Documentjava.io.IOExceptionpublic java.lang.String getPath()
Document
getPath in interface Documentpublic java.lang.String getFilePath()
Document
getFilePath in interface Documentnull, otherwise.public java.lang.String getURLPath()
Document
getURLPath in interface Documentnull, otherwise.public java.lang.String getUsername()
Document
getUsername in interface Documentpublic java.lang.String getPassword()
Document
getPassword in interface Document
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||