be.ac.vub.cocompose.io
Interface ModelWriter

All Known Implementing Classes:
FileModelWriter

public interface ModelWriter

Generic model writing interface for writing a model to its URI.

Since:
0.2.0
Version:
0.2.6, 08/03/2004
Author:
Dennis Wagelaar

Method Summary
 void write(Model model)
          Writes the model to its URI.
 void write(Model model, OutputStream output)
          Writes the model to an OutputStream.
 

Method Detail

write

public void write(Model model)
           throws IOException,
                  ModelElementException
Writes the model to its URI.

Parameters:
model - - the model to write.
Throws:
IOException - - if the model could not be written.
ModelElementException - - if a model element could not be written.

write

public void write(Model model,
                  OutputStream output)
           throws IOException,
                  ModelElementException
Writes the model to an OutputStream.

Parameters:
model - - the model to write.
output - - the stream to write to.
Throws:
IOException - - if the model could not be written.
ModelElementException - - if a model element could not be written.