|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.core.io.AbstractResource
org.loom.persistence.file.PersistentFileResource
public class PersistentFileResource
Adapter from PersistentFile to Spring Resource API
Constructor Summary | |
---|---|
PersistentFileResource(PersistentFile file)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
This implementation compares the underlying InputStream. |
boolean |
exists()
This implementation always returns true . |
java.lang.String |
getDescription()
This implementation returns the passed-in description, if any. |
java.io.InputStream |
getInputStream()
|
int |
hashCode()
This implementation returns the hash code of the underlying InputStream. |
boolean |
isOpen()
This implementation always returns false . |
Methods inherited from class org.springframework.core.io.AbstractResource |
---|
createRelative, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, isReadable, lastModified, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PersistentFileResource(PersistentFile file)
Method Detail |
---|
public boolean exists()
true
.
exists
in interface org.springframework.core.io.Resource
exists
in class org.springframework.core.io.AbstractResource
public boolean isOpen()
false
.
isOpen
in interface org.springframework.core.io.Resource
isOpen
in class org.springframework.core.io.AbstractResource
public java.io.InputStream getInputStream() throws java.io.IOException, java.lang.IllegalStateException
java.io.IOException
java.lang.IllegalStateException
public java.lang.String getDescription()
public boolean equals(java.lang.Object obj)
equals
in class org.springframework.core.io.AbstractResource
public int hashCode()
hashCode
in class org.springframework.core.io.AbstractResource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |