Package com.android.repository.impl.meta
Class TrimStringAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.String>
-
- com.android.repository.impl.meta.TrimStringAdapter
-
public class TrimStringAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.String>AnXmlAdapterthat 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 Summary
Constructors Constructor Description TrimStringAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringmarshal(java.lang.String s)java.lang.Stringunmarshal(java.lang.String v)
-
-
-
Method Detail
-
unmarshal
public java.lang.String unmarshal(java.lang.String v)
- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.String>
-
marshal
public java.lang.String marshal(java.lang.String s)
- Specified by:
marshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.String>
-
-