public class SpringResource extends 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 . |
contentLength, createRelative, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, isReadable, lastModified, toString
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 AbstractResource
public boolean exists()
true
.exists
in interface Resource
exists
in class AbstractResource
public String getDescription()
public InputStream getInputStream() throws IOException, IllegalStateException
IOException
IllegalStateException
public int hashCode()
hashCode
in class AbstractResource
public boolean isOpen()
true
.isOpen
in interface Resource
isOpen
in class AbstractResource
Copyright © 2005-2015 Restlet.