Package org.apache.wiki.htmltowiki
Class WhitespaceTrimWriter
java.lang.Object
java.io.Writer
org.apache.wiki.htmltowiki.WhitespaceTrimWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class WhitespaceTrimWriter extends Writer
Part of the XHtmlToWikiTranslator.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description WhitespaceTrimWriter() -
Method Summary
Modifier and Type Method Description voidclose()voidflush()booleanisCurrentlyOnLineBegin()Returns true, if the writer is currently writing a line start.booleanisWhitespaceTrimMode()Returns true, if this Writer is currently trimming any whitespaces.voidsetWhitespaceTrimMode(boolean trimMode)Set the trimming mode on/off.StringtoString()voidwrite(char[] arg0, int arg1, int arg2)
-
Constructor Details
-
WhitespaceTrimWriter
public WhitespaceTrimWriter()
-
-
Method Details
-
flush
-
isWhitespaceTrimMode
Returns true, if this Writer is currently trimming any whitespaces.- Returns:
- True, if trimming.
-
setWhitespaceTrimMode
Set the trimming mode on/off.- Parameters:
trimMode- True, if you want trimming to be turned on. False otherwise.
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
toString
-
isCurrentlyOnLineBegin
Returns true, if the writer is currently writing a line start.- Returns:
- True or false.
-