com.unitesk.atp.text.filters
Class WriterTextReceiver

java.lang.Object
  extended by com.unitesk.atp.text.filters.WriterTextReceiver
All Implemented Interfaces:
TextReceiver

public class WriterTextReceiver
extends Object
implements TextReceiver

Text receiver that prints text to Writer

Version:
$Id: WriterTextReceiver.java,v 1.2 2004/10/11 15:00:42 all-x Exp $
Author:
Alexey Demakov

Constructor Summary
WriterTextReceiver(Writer writer, ExceptionHandler exceptionHandler)
          Constructs text receiver with the specified Writer and ExceptionHandler.
 
Method Summary
 void close()
          Close underlying Writer
 void nl()
          Passes a line separator to underlying Writer
 void txt(String s)
          Passes the specified string to the underlying Writer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriterTextReceiver

public WriterTextReceiver(Writer writer,
                          ExceptionHandler exceptionHandler)
Constructs text receiver with the specified Writer and ExceptionHandler.

Parameters:
writer - The client to write to.
exceptionHandler - The exception handler.
Method Detail

close

public void close()
Close underlying Writer


txt

public void txt(String s)
Passes the specified string to the underlying Writer

Specified by:
txt in interface TextReceiver
Parameters:
s - The string to write.

nl

public void nl()
Passes a line separator to underlying Writer

Specified by:
nl in interface TextReceiver


Copyright © 2001-2006 ISP RAS, RedVerst Group. All Rights Reserved.