public class FileEditor extends PropertyEditorSupportSE
java.io.File のエディター。Spring リソースの場所からファイルプロパティを直接入力します。Spring スタイルの URL 表記をサポート: 完全修飾された標準 URL( "file:"、"http:" など)および Spring の特別な "classpath:" 疑似 URL。
注意 : このエディターの動作は Spring 2.0 で変更されました。以前は、ファイル名から直接 File インスタンスを作成していました。Spring 2.0 では、入力として標準の Spring リソースの場所を取ります。これは現在、URLEditor および InputStreamEditor と一致しています。
注意 : Spring 2.5 では、次の変更が行われました。URL 接頭辞なしまたは絶対パスなしでファイル名が指定されている場合、標準の ResourceLoader セマンティクスを使用してファイルを見つけようとします。ファイルが見つからなかった場合は、ファイル名が相対ファイルの場所を参照していると想定して、File インスタンスが作成されます。
FileSE, ResourceEditor, ResourceLoader, URLEditor, InputStreamEditor| コンストラクターと説明 |
|---|
FileEditor() 下にあるデフォルトの ResourceEditor を使用して、新しい FileEditor を作成します。 |
FileEditor(ResourceEditor resourceEditor) 下にある ResourceEditor を使用して、新しい FileEditor を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
StringSE | getAsText() |
void | setAsText(StringSE text) |
addPropertyChangeListenerSE, firePropertyChangeSE, getCustomEditorSE, getJavaInitializationStringSE, getSourceSE, getTagsSE, getValueSE, isPaintableSE, paintValueSE, removePropertyChangeListenerSE, setSourceSE, setValueSE, supportsCustomEditorSEcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic FileEditor()
public FileEditor(ResourceEditor resourceEditor)
resourceEditor - 使用する ResourceEditorpublic void setAsText(StringSE text) throws IllegalArgumentExceptionSE
PropertyEditorSE の setAsTextSE PropertyEditorSupportSE の setAsTextSE IllegalArgumentExceptionSEpublic StringSE getAsText()
PropertyEditorSE の getAsTextSE PropertyEditorSupportSE の getAsTextSE