public class SpringResource
extends org.springframework.core.io.AbstractResource
| Constructor and Description |
|---|
SpringResource(Representation representation)
Constructor.
|
SpringResource(Representation representation,
java.lang.String description)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
This implementation compares the underlying InputStream.
|
boolean |
exists()
This implementation always returns
true. |
java.lang.String |
getDescription()
Returns the description.
|
java.io.InputStream |
getInputStream()
This implementation throws IllegalStateException if attempting to read
the underlying stream multiple times.
|
int |
hashCode()
This implementation returns the hash code of the underlying InputStream.
|
boolean |
isOpen()
This implementation always returns
true. |
public SpringResource(Representation representation)
representation - The description.public SpringResource(Representation representation, java.lang.String description)
representation - The description.description - The description.public boolean equals(java.lang.Object obj)
equals in class org.springframework.core.io.AbstractResourcepublic boolean exists()
true.exists in interface org.springframework.core.io.Resourceexists in class org.springframework.core.io.AbstractResourcepublic java.lang.String getDescription()
public java.io.InputStream getInputStream()
throws java.io.IOException,
java.lang.IllegalStateException
java.io.IOExceptionjava.lang.IllegalStateExceptionpublic int hashCode()
hashCode in class org.springframework.core.io.AbstractResourcepublic boolean isOpen()
true.isOpen in interface org.springframework.core.io.ResourceisOpen in class org.springframework.core.io.AbstractResourceCopyright © 2005-2024 Restlet.