mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 20:15:28 -04:00
Minor API changes.
This commit is contained in:
parent
cff4d836d1
commit
534f964868
@ -69,12 +69,15 @@ public class XMLSerializer {
|
||||
context = new SerializationContext();
|
||||
}
|
||||
|
||||
public final void setIndentation(String pIndent) {
|
||||
public final XMLSerializer indentation(String pIndent) {
|
||||
// TODO: Verify that indent value is only whitespace?
|
||||
context.indent = pIndent != null ? pIndent : "\t";
|
||||
return this;
|
||||
}
|
||||
|
||||
public final void setStripComments(boolean pStrip) {
|
||||
public final XMLSerializer stripComments(boolean pStrip) {
|
||||
context.stripComments = pStrip;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user