クラス InMemoryResource

java.lang.ObjectSE
org.springframework.core.io.AbstractResource
org.springframework.security.util.InMemoryResource
実装されているすべてのインターフェース:
org.springframework.core.io.InputStreamSourceorg.springframework.core.io.Resource

public class InMemoryResource extends org.springframework.core.io.AbstractResource
Spring の Resource インターフェースのメモリ内実装。

ファイルではなく XML 文字列から Bean ファクトリを作成するために使用されます。

  • コンストラクターの概要

    コンストラクター
    コンストラクター
    説明
    InMemoryResource(byte[] source)
    InMemoryResource(byte[] source, @Nullable StringSE description)
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    boolean
    equals(@Nullable ObjectSE res)
    int

    クラス org.springframework.core.io.AbstractResource から継承されたメソッド

    contentLength, createRelative, exists, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, isFile, isOpen, isReadable, lastModified, readableChannel, toString

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, finalize, getClass, notify, notifyAll, wait, waitSE, waitSE

    インターフェース org.springframework.core.io.Resource から継承されたメソッド

    getContentAsByteArray, getContentAsString, getFilePath
  • コンストラクターの詳細

    • InMemoryResource

      public InMemoryResource(StringSE source)
    • InMemoryResource

      public InMemoryResource(byte[] source)
    • InMemoryResource

      public InMemoryResource(byte[] source, @Nullable StringSE description)
  • メソッドの詳細

    • getDescription

      public StringSE getDescription()
    • getInputStream

      public InputStreamSE getInputStream()
    • equals

      public boolean equals(@Nullable ObjectSE res)
      オーバーライド:
      クラス org.springframework.core.io.AbstractResourceequals 
    • hashCode

      public int hashCode()
      オーバーライド:
      クラス org.springframework.core.io.AbstractResourcehashCode