
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 WriterIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic boolean isCurrentlyOnLineBegin()
Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.