public class CollapsedStringAdapter extends XmlAdapter<String,String>
XmlAdapter。
このアダプタは、先頭と末尾の空白を削除したあと、タブ、CR、LF、SPのシーケンスを1つの空白文字「」に切り詰めます。
| コンストラクタ | 説明 |
|---|---|
CollapsedStringAdapter() |
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
protected static boolean |
isWhiteSpace(char ch) |
指定された文字が空白文字である場合、trueを返します。
|
String |
marshal(String s) |
何もしません。
|
String |
unmarshal(String text) |
パラメータとして与えられた文字列の先頭と末尾の空白を削除したあと、タブ、CR、LF、SPのシーケンスを1つの空白文字「」に切り詰めます。
|
public String unmarshal(String text)
unmarshal、クラスXmlAdapter<String,String>text - 変換する値。 nullも可。 public String marshal(String s)
marshal、クラスXmlAdapter<String,String>s - 変換する値。 nullも可。 protected static boolean isWhiteSpace(char ch)
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。