org.springframework.security.util
Class InMemoryResource
java.lang.Object
org.springframework.core.io.AbstractResource
org.springframework.security.util.InMemoryResource
- All Implemented Interfaces:
- InputStreamSource, Resource
public class InMemoryResource
- extends AbstractResource
An in memory implementation of Spring's Resource
interface.
Used to create a bean factory from an XML string, rather than a file.
- Version:
- $Id: InMemoryResource.java 3540 2009-03-20 04:44:39Z ltaylor $
- Author:
- Luke Taylor
Methods inherited from class org.springframework.core.io.AbstractResource |
createRelative, exists, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, isOpen, isReadable, lastModified, toString |
InMemoryResource
public InMemoryResource(String source)
InMemoryResource
public InMemoryResource(byte[] source)
InMemoryResource
public InMemoryResource(byte[] source,
String description)
getDescription
public String getDescription()
getInputStream
public InputStream getInputStream()
throws IOException
- Throws:
IOException
hashCode
public int hashCode()
- Overrides:
hashCode
in class AbstractResource
equals
public boolean equals(Object res)
- Overrides:
equals
in class AbstractResource
Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.