public class SpringResource
extends org.springframework.core.io.AbstractResource
| Constructor and Description |
|---|
SpringResource(Representation representation)
Constructor.
|
SpringResource(Representation representation,
String description)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
This implementation compares the underlying InputStream.
|
boolean |
exists()
This implementation always returns
true. |
String |
getDescription()
Returns the description.
|
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, String description)
representation - The description.description - The description.public boolean equals(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 String getDescription()
public InputStream getInputStream() throws IOException, IllegalStateException
IOExceptionIllegalStateExceptionpublic 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-2017 Restlet.