|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.vub.cocompose.io.FileModelWriter
Introduces methods for writing to URIs.
Constructor Summary | |
FileModelWriter()
|
Method Summary | |
protected OutputStream |
getOutputStream(String uri)
Opens an output stream to the given URI. |
StreamWriter |
getStreamWriter()
Gets the stream writer. |
void |
setStreamWriter(StreamWriter streamWriter)
Sets the stream writer. |
void |
write(Model model)
Writes the model to its URI. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface be.ac.vub.cocompose.io.ModelWriter |
write |
Constructor Detail |
public FileModelWriter()
Method Detail |
public void write(Model model) throws IOException, ModelElementException
write
in interface ModelWriter
model
- - the model to write.
IOException
- - if the model could not be written.
ModelElementException
- - if a model element could not be written.protected OutputStream getOutputStream(String uri) throws IOException
uri
- - the URI to look at.
IOException
- - if the output stream could not be opened.public StreamWriter getStreamWriter()
public void setStreamWriter(StreamWriter streamWriter)
streamWriter
- - the stream writer.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |