public class WhitespaceTrimWriter extends Writer
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.
|
String |
toString() |
void |
write(char[] arg0,
int arg1,
int arg2) |
public WhitespaceTrimWriter()
public void flush()
public 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 IOException
write
in class Writer
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public boolean isCurrentlyOnLineBegin()
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.