Class InMemoryResource

  • All Implemented Interfaces:,

    public class InMemoryResource
    An in memory implementation of Spring's Resource interface.

    Used to create a bean factory from an XML string, rather than a file.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object res)  
      java.lang.String getDescription() getInputStream()  
      int hashCode()  
      • Methods inherited from class

        contentLength, createRelative, exists, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, isFile, isOpen, isReadable, lastModified, readableChannel, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InMemoryResource

        public InMemoryResource​(java.lang.String source)
      • InMemoryResource

        public InMemoryResource​(byte[] source)
      • InMemoryResource

        public InMemoryResource​(byte[] source,
                                java.lang.String description)
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
      • getInputStream

        public getInputStream()
      • equals

        public boolean equals​(java.lang.Object res)
        equals in class
      • hashCode

        public int hashCode()
        hashCode in class