public class FilteringAppendableWrapper extends Object implements Appendable
Appendable
that appends all the text to wrapped Appendable only if writeEnabled=true.Constructor and Description |
---|
FilteringAppendableWrapper() |
Modifier and Type | Method and Description |
---|---|
Appendable |
append(char c) |
Appendable |
append(CharSequence csq) |
Appendable |
append(CharSequence csq,
int start,
int end) |
Appendable |
getWrappedAppendable() |
boolean |
isWriteEnabled() |
void |
setWrappedAppendable(Appendable appendable) |
void |
setWriteEnabled(boolean writeEnabled) |
public boolean isWriteEnabled()
public void setWriteEnabled(boolean writeEnabled)
public Appendable append(CharSequence csq) throws IOException
append
in interface Appendable
IOException
public Appendable append(char c) throws IOException
append
in interface Appendable
IOException
public Appendable append(CharSequence csq, int start, int end) throws IOException
append
in interface Appendable
IOException
public Appendable getWrappedAppendable()
public void setWrappedAppendable(Appendable appendable)
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.