public class InMemoryResource extends AbstractResource
Resource interface.
Used to create a bean factory from an XML string, rather than a file.
| Constructor and Description |
|---|
InMemoryResource(byte[] source) |
InMemoryResource(byte[] source,
String description) |
InMemoryResource(String source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object res) |
String |
getDescription() |
InputStream |
getInputStream() |
int |
hashCode() |
contentLength, createRelative, exists, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, isOpen, isReadable, lastModified, toStringpublic InMemoryResource(String source)
public InMemoryResource(byte[] source)
public InMemoryResource(byte[] source,
String description)
public String getDescription()
public InputStream getInputStream() throws IOException
IOExceptionpublic int hashCode()
hashCode in class AbstractResourcepublic boolean equals(Object res)
equals in class AbstractResource