public class TrimStringAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.String>
XmlAdapter that removes leading and trailing whitespace, and converts internal strings
of whitespace to a single space. Newlines are also removed, except when it looks like they've
been added to improve readability (specifically, when there's more than one newline in a row. In
other words, blank lines are preserved).
Also interns the cached strings in our own pool.| Constructor and Description |
|---|
TrimStringAdapter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
marshal(java.lang.String s) |
java.lang.String |
unmarshal(java.lang.String v) |
public java.lang.String unmarshal(java.lang.String v)
unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.String>public java.lang.String marshal(java.lang.String s)
marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.String>