org.springframework.security.util
Class InMemoryResource

java.lang.Object
  extended by org.springframework.core.io.AbstractResource
      extended by org.springframework.security.util.InMemoryResource
All Implemented Interfaces:
org.springframework.core.io.InputStreamSource, org.springframework.core.io.Resource

public class InMemoryResource
extends org.springframework.core.io.AbstractResource

An in memory implementation of Spring's Resource interface.

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


Constructor Summary
InMemoryResource(byte[] source)
           
InMemoryResource(byte[] source, java.lang.String description)
           
InMemoryResource(java.lang.String source)
           
 
Method Summary
 boolean equals(java.lang.Object res)
           
 java.lang.String getDescription()
           
 java.io.InputStream getInputStream()
           
 int hashCode()
           
 
Methods inherited from class org.springframework.core.io.AbstractResource
createRelative, exists, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, isOpen, isReadable, lastModified, 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 java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

hashCode

public int hashCode()
Overrides:
hashCode in class org.springframework.core.io.AbstractResource

equals

public boolean equals(java.lang.Object res)
Overrides:
equals in class org.springframework.core.io.AbstractResource