public class BasicStoragePolicy extends AbstractStoragePolicy
Constructor and Description |
---|
BasicStoragePolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
close(Document d)
Close the document.
|
Document |
open(Application app)
Open a new document.
|
Document |
open(java.io.File file,
Application app)
Open a file and create a new document.
|
Document |
open(java.net.URL url,
Application app)
Open a URL and create a new document.
|
boolean |
save(Document d)
Save the document.
|
boolean |
saveAs(Document d)
Save the document to a user-specified location.
|
getDirectory, setDirectory, setDirectory
public boolean close(Document d)
public Document open(Application app)
public Document open(java.io.File file, Application app)
public Document open(java.net.URL url, Application app)
public boolean save(Document d)
public boolean saveAs(Document d)