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
Part of the XHtmlToWikiTranslator.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()booleanReturns true, if the writer is currently writing a line start.booleanReturns true, if this Writer is currently trimming any whitespaces.voidsetWhitespaceTrimMode(boolean trimMode) Set the trimming mode on/off.toString()voidwrite(char[] arg0, int arg1, int arg2)
-
Field Details
-
NO_TRIMMED_SPACE
- See Also:
-
-
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.
-