Spring Security Framework

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:
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$
Author:
Luke Taylor

Constructor Summary
InMemoryResource(byte[] source)
           
InMemoryResource(byte[] source, String description)
           
InMemoryResource(String source)
           
 
Method Summary
 boolean equals(Object res)
           
 String getDescription()
           
 InputStream getInputStream()
           
 int hashCode()
           
 
Methods inherited from class org.springframework.core.io.AbstractResource
createRelative, exists, getFile, getFilename, getURL, isOpen, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InMemoryResource

public InMemoryResource(String source)

InMemoryResource

public InMemoryResource(byte[] source)

InMemoryResource

public InMemoryResource(byte[] source,
                        String description)
Method Detail

getDescription

public String getDescription()
Specified by:
getDescription in interface Resource
Specified by:
getDescription in class AbstractResource

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

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.