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.AbstractResource
public boolean exists()
true
.exists
in interface org.springframework.core.io.Resource
exists
in class org.springframework.core.io.AbstractResource
public java.lang.String getDescription()
public java.io.InputStream getInputStream() throws java.io.IOException, java.lang.IllegalStateException
java.io.IOException
java.lang.IllegalStateException
public int hashCode()
hashCode
in class org.springframework.core.io.AbstractResource
public boolean isOpen()
true
.isOpen
in interface org.springframework.core.io.Resource
isOpen
in class org.springframework.core.io.AbstractResource
Copyright © 2005-2020 Restlet.