Class InMemoryResource
java.lang.Object
org.springframework.core.io.AbstractResource
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 SummaryConstructorsConstructorDescriptionInMemoryResource(byte[] source) InMemoryResource(byte[] source, @Nullable String description) InMemoryResource(String source) 
- 
Method SummaryMethods inherited from class org.springframework.core.io.AbstractResourcecontentLength, createRelative, exists, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, isFile, isOpen, isReadable, lastModified, readableChannel, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.core.io.ResourcegetContentAsByteArray, getContentAsString, getFilePath
- 
Constructor Details- 
InMemoryResource
- 
InMemoryResourcepublic InMemoryResource(byte[] source) 
- 
InMemoryResource
 
- 
- 
Method Details- 
getDescription
- 
getInputStream
- 
equals- Overrides:
- equalsin class- org.springframework.core.io.AbstractResource
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- org.springframework.core.io.AbstractResource
 
 
-