org.peaseplate.chunk.strategy
Class DefaultOutputStrategy

java.lang.Object
  extended by org.peaseplate.chunk.strategy.DefaultOutputStrategy
All Implemented Interfaces:
OutputStrategy

public class DefaultOutputStrategy
extends java.lang.Object
implements OutputStrategy

The default output strategy. If the object is not null, write it as string.

Author:
Manfred HANTSCHEL

Constructor Summary
DefaultOutputStrategy()
           
 
Method Summary
 void write(java.io.Writer writer, java.lang.Object object)
          Writes the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOutputStrategy

public DefaultOutputStrategy()
Method Detail

write

public void write(java.io.Writer writer,
                  java.lang.Object object)
           throws java.io.IOException
Description copied from interface: OutputStrategy
Writes the object

Specified by:
write in interface OutputStrategy
Parameters:
writer - the writer
object - the object
Throws:
java.io.IOException
See Also:
OutputStrategy.write(java.io.Writer, java.lang.Object)


Copyright © 2008. All Rights Reserved.