com.prowidesoftware.swift.io.writer
Class SwiftWriter

java.lang.Object
  extended by com.prowidesoftware.swift.io.writer.SwiftWriter

public class SwiftWriter
extends java.lang.Object

This class handles writing swift messages exclusively, all validation and consistency checks must be done previous to using the writer.

Version:
$Id: SwiftWriter.java,v 1.1.1.1 2013/04/10 17:04:50 mgriffa Exp $
Author:
www.prowidesoftware.com

Constructor Summary
SwiftWriter()
           
 
Method Summary
 java.lang.String getInternalXml(SwiftMessage msg)
          Get a string with the internal xml representation of a message.
 void writeMessage(SwiftMessage msg, java.io.Writer writer)
          Write the given message to writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwiftWriter

public SwiftWriter()
Method Detail

writeMessage

public void writeMessage(SwiftMessage msg,
                         java.io.Writer writer)
Write the given message to writer.

Parameters:
msg - the message to write
writer - the writer that will actually receive all the write operations
Throws:
java.lang.IllegalArgumentException - if msg or writer are null

getInternalXml

public java.lang.String getInternalXml(SwiftMessage msg)
Get a string with the internal xml representation of a message.

Parameters:
msg - the message to write
Returns:
a string with an internal xml representation of the message
Throws:
java.lang.IllegalArgumentException - if msg is null