|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sdedit.editor.DiagramLoader
public final class DiagramLoader
Auxiliary class for saving diagrams as plain text or in XML format, along with a configuration.
| Method Summary | |
|---|---|
static Pair<String,Bean<Configuration>> |
load(InputStream stream,
String encoding)
Loads a diagram from the text transmitted through the given stream. |
static void |
saveDiagram(String source,
Bean<Configuration> configuration,
OutputStream stream,
String encoding)
Saves a diagram specification (and a configuration), using a stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Pair<String,Bean<Configuration>> load(InputStream stream,
String encoding)
throws IOException,
DocUtil.XMLException
stream - the stream from where the diagram specification is readencoding - the encoding of the diagram specification
IOException
DocUtil.XMLException
public static void saveDiagram(String source,
Bean<Configuration> configuration,
OutputStream stream,
String encoding)
throws IOException,
DocUtil.XMLException
source - the source text of the diagramconfiguration - a configuration of the diagram, or null if it is to be saved
without a configuration (as plain text)stream - the stream to use for saving the diagram source and
configurationencoding - the encoding to be used
IOException
DocUtil.XMLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||