com.prowidesoftware.swift.io.writer
Class TextWriter

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

Deprecated. user SwiftWriter

public class TextWriter
extends java.lang.Object

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

Constructor Summary
TextWriter()
          Deprecated.  
 
Method Summary
 java.lang.String buildMessage(java.lang.String template, java.lang.Object env)
          Deprecated. Creates a string with a swift message for the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextWriter

public TextWriter()
Deprecated. 
Method Detail

buildMessage

public java.lang.String buildMessage(java.lang.String template,
                                     java.lang.Object env)
Deprecated. 
Creates a string with a swift message for the given object. The message type is selected in the template, which must point to a resource found in classapath.

Parameters:
template - a valid path to the resource
env - the object to use to render the message
Returns:
the string containing the encoded message
Throws:
java.lang.IllegalArgumentException - if template is null or the the template resource is not found in classpath