|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
org.argouml.persistence.AbstractFilePersister
org.argouml.persistence.UmlFilePersister
org.argouml.persistence.ZargoFilePersister
To persist to and from zargo (zipped file) storage.
Nested Class Summary | |
private class |
ZargoFilePersister.SubInputStream
A stream of input streams for reading the Zipped file. |
Field Summary | |
private static String |
ARGO_MINI_TEE
This is the old version of the ArgoUML tee file which does not contain the detail of member elements. |
private static Logger |
LOG
Logger. |
Fields inherited from class org.argouml.persistence.UmlFilePersister |
PERSISTENCE_VERSION |
Fields inherited from class org.argouml.persistence.AbstractFilePersister |
|
Constructor Summary | |
ZargoFilePersister()
The constructor. |
Method Summary | |
Project |
doLoad(File file)
|
void |
doSave(Project project,
File file)
It is being considered to save out individual xmi's from individuals diagrams to make it easier to modularize the output of Argo. |
protected String |
getDesc()
(Just the description, not the extension between "()".) |
String |
getExtension()
The extension valid for this type of file. |
private ZipInputStream |
openZipStreamAt(URL url,
String ext)
Open a ZipInputStream to the first file found with a given extension. |
private void |
readerToWriter(Reader reader,
Writer writer)
|
Methods inherited from class org.argouml.persistence.UmlFilePersister |
doLoad, getMemberFilePersister, getVersion, progress, transform, writeProject |
Methods inherited from class org.argouml.persistence.AbstractFilePersister |
accept, addProgressListener, copyFile, createTempFile, fireProgressEvent, getDescription, getEncoding, removeProgressListener, save |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final Logger LOG
private static final String ARGO_MINI_TEE
Constructor Detail |
public ZargoFilePersister()
Method Detail |
public String getExtension()
AbstractFilePersister
getExtension
in class UmlFilePersister
AbstractFilePersister.getExtension()
protected String getDesc()
AbstractFilePersister
getDesc
in class UmlFilePersister
AbstractFilePersister.getDesc()
public void doSave(Project project, File file) throws SaveException
doSave
in class UmlFilePersister
file
- The file to write.project
- the project to save
SaveException
- when anything goes wrongProjectFilePersister.save(
org.argouml.kernel.Project, java.io.File)
public Project doLoad(File file) throws OpenException
doLoad
in interface ProjectFilePersister
doLoad
in class UmlFilePersister
OpenException
org.argouml.persistence.ProjectFilePersister#doLoad(java.io.File,
org.argouml.persistence.ProgressListener)
private void readerToWriter(Reader reader, Writer writer) throws IOException
IOException
private ZipInputStream openZipStreamAt(URL url, String ext) throws IOException
url
- The URL of the zip file.ext
- The required extension.
IOException
- if there is a problem opening the file.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |