public class WhitespaceTrimWriter extends java.io.Writer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NO_TRIMMED_SPACE |
| Constructor and Description |
|---|
WhitespaceTrimWriter() |
| Modifier and Type | Method and 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.
|
java.lang.String |
toString() |
void |
write(char[] arg0,
int arg1,
int arg2) |
public static final java.lang.String NO_TRIMMED_SPACE
public WhitespaceTrimWriter()
public void flush()
flush in interface java.io.Flushableflush in class java.io.Writerpublic boolean isWhitespaceTrimMode()
public void setWhitespaceTrimMode(boolean trimMode)
trimMode - True, if you want trimming to be turned on. False otherwise.public void write(char[] arg0, int arg1, int arg2) throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void close() throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isCurrentlyOnLineBegin()
Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.