|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface abstracts the details of file access. Implementations of this interface provide methods to open streams to a project file, indepent of storage location (filesystem / WebDAV).
| 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 |
| Method Detail |
public java.lang.String getDescription()
public boolean canRead()
public boolean canWrite()
public java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOException
public java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getPath()
public java.lang.String getFilePath()
null, otherwise.public java.lang.String getURLPath()
null, otherwise.public java.lang.String getUsername()
public java.lang.String getPassword()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||