public final class NormalizedStringAdapter extends XmlAdapter<String,String>
XmlAdapter
处理
xs:normalizedString。
取代任何选项卡,铬,和LF的空白字符”,按the whitespace facet 'replace'
Constructor and Description |
---|
NormalizedStringAdapter() |
public String unmarshal(String text)
unmarshal
方法重写,继承类
XmlAdapter<String,String>
text
-要转换的值。可以为空。
public String marshal(String s)
marshal
方法重写,继承类
XmlAdapter<String,String>
s
要convereted价值。可以为空。
protected static boolean isWhiteSpaceExceptSpace(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.