ca.infoway.messagebuilder.xml
Class MessageSetMarshaller

Package class diagram package MessageSetMarshaller
java.lang.Object
  extended by ca.infoway.messagebuilder.xml.MessageSetMarshaller

public class MessageSetMarshaller
extends Object

A utility to read and write the object representation of a message set.

Author:
Intelliware Development

Constructor Summary
MessageSetMarshaller()
           
 
Method Summary
 void marshall(MessageSet domain, File file)
          Marshall a message set to an output stream.
 void marshall(MessageSet domain, OutputStream output)
          Marshall a message set to an output stream.
 MessageSet unmarshall(File file)
          Unmarshall a message set to a file.
 MessageSet unmarshall(InputStream input)
          Unmarshall a message set to a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageSetMarshaller

public MessageSetMarshaller()
Method Detail

unmarshall

public MessageSet unmarshall(File file)
                      throws Exception

Unmarshall a message set to a file.

Parameters:
file - - the file to read
Returns:
the message set.
Throws:
Exception - - if any underlying exception occurs

marshall

public void marshall(MessageSet domain,
                     OutputStream output)
              throws Exception

Marshall a message set to an output stream.

Parameters:
domain - - the message set to marshall
output - - the output stream
Throws:
Exception - - if any underlying exception occurs

marshall

public void marshall(MessageSet domain,
                     File file)
              throws Exception

Marshall a message set to an output stream.

Parameters:
domain - - the message set to marshall
file - - the file to write to
Throws:
Exception - - if any underlying exception occurs

unmarshall

public MessageSet unmarshall(InputStream input)
                      throws Exception

Unmarshall a message set to a file.

Parameters:
input - - the input stream
Returns:
the message set.
Throws:
Exception - - if any underlying exception occurs


Copyright © 2013. All Rights Reserved.