クラス DynamicFile

java.lang.ObjectSE
org.springframework.core.test.tools.DynamicFile
既知の直属サブクラス
ResourceFileSourceFile

public abstract sealed class DynamicFile extends ObjectSE permits SourceFile, ResourceFile
動的に生成されるファイルの抽象基本クラス。
導入:
6.0
作成者:
Phillip Webb
関連事項:
  • コンストラクターの詳細

  • メソッドの詳細

    • toString

      protected static StringSE toString(WritableContent writableContent)
    • getBytes

      public byte[] getBytes()
      ファイルの内容をバイト配列として返します。
      戻り値:
      バイト配列としてのファイルの内容
    • getContent

      public StringSE getContent()
      ファイルの内容を返します。
      戻り値:
      ファイルの内容
    • getPath

      public StringSE getPath()
      ファイルの相対パスを返します。
      戻り値:
      ファイルパス
    • equals

      public boolean equals(@Nullable ObjectSE other)
      オーバーライド:
      クラス ObjectSEequalsSE 
    • hashCode

      public int hashCode()
      オーバーライド:
      クラス ObjectSEhashCode 
    • toString

      public StringSE toString()
      オーバーライド:
      クラス ObjectSEtoString