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 void
close()
void
flush()
boolean
isCurrentlyOnLineBegin()
Returns true, if the writer is currently writing a line start.boolean
isWhitespaceTrimMode()
Returns true, if this Writer is currently trimming any whitespaces.void
setWhitespaceTrimMode(boolean trimMode)
Set the trimming mode on/off.String
toString()
void
write(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:
write
in classWriter
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
toString
-
isCurrentlyOnLineBegin
Returns true, if the writer is currently writing a line start.- Returns:
- True or false.
-