com.ecyrd.jspwiki.htmltowiki
Class WhitespaceTrimWriter

java.lang.Object
  extended by java.io.Writer
      extended by com.ecyrd.jspwiki.htmltowiki.WhitespaceTrimWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class WhitespaceTrimWriter
extends Writer

Part of the XHtmlToWikiTranslator

Author:
Sebastian Baltes (sbaltes@gmx.com)

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
WhitespaceTrimWriter()
           
 
Method Summary
 void close()
           
 void flush()
           
 boolean isCurrentlyOnLineBegin()
           
 boolean isWhitespaceTrimMode()
           
 void setWhitespaceTrimMode(boolean trimMode)
           
 String toString()
           
 void write(char[] arg0, int arg1, int arg2)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WhitespaceTrimWriter

public WhitespaceTrimWriter()
Method Detail

flush

public void flush()
Specified by:
flush in interface Flushable
Specified by:
flush in class Writer

isWhitespaceTrimMode

public boolean isWhitespaceTrimMode()

setWhitespaceTrimMode

public void setWhitespaceTrimMode(boolean trimMode)

write

public void write(char[] arg0,
                  int arg1,
                  int arg2)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Writer
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

isCurrentlyOnLineBegin

public boolean isCurrentlyOnLineBegin()