public class CollapsedStringAdapter extends XmlAdapter<String,String>
XmlAdapter
处理
xs:token及其派生类型。
该适配器删除前导和尾随空格,然后截断任何序列选项卡,CR,LF,和SP由单个空格字符”。
Constructor and Description |
---|
CollapsedStringAdapter() |
public String unmarshal(String text)
unmarshal
方法重写,继承类
XmlAdapter<String,String>
text
-要转换的值。可以为空。
public String marshal(String s)
marshal
方法重写,继承类
XmlAdapter<String,String>
s
要convereted价值。可以为空。
protected static boolean isWhiteSpace(char ch)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.