Class GridFsStoreResource
java.lang.Object
internal.org.springframework.content.mongo.io.GridFsStoreResource
- All Implemented Interfaces:
DeletableResource,org.springframework.core.io.InputStreamSource,org.springframework.core.io.Resource,org.springframework.core.io.WritableResource
public class GridFsStoreResource
extends Object
implements org.springframework.core.io.Resource, org.springframework.core.io.WritableResource, DeletableResource
-
Constructor Summary
ConstructorsConstructorDescriptionGridFsStoreResource(String location, org.springframework.data.mongodb.gridfs.GridFsTemplate gridfs) GridFsStoreResource(org.springframework.core.io.Resource delegate, org.springframework.data.mongodb.gridfs.GridFsTemplate gridfs) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.core.io.Resource
getContentAsByteArray, getContentAsString, isFile, readableChannelMethods inherited from interface org.springframework.core.io.WritableResource
writableChannel
-
Constructor Details
-
GridFsStoreResource
public GridFsStoreResource(org.springframework.core.io.Resource delegate, org.springframework.data.mongodb.gridfs.GridFsTemplate gridfs) -
GridFsStoreResource
public GridFsStoreResource(String location, org.springframework.data.mongodb.gridfs.GridFsTemplate gridfs)
-
-
Method Details
-
contentLength
- Specified by:
contentLengthin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getFilename
- Specified by:
getFilenamein interfaceorg.springframework.core.io.Resource- Throws:
IllegalStateException
-
lastModified
- Specified by:
lastModifiedin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getId
-
exists
public boolean exists()- Specified by:
existsin interfaceorg.springframework.core.io.Resource
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.springframework.core.io.Resource
-
getInputStream
- Specified by:
getInputStreamin interfaceorg.springframework.core.io.InputStreamSource- Throws:
IOExceptionIllegalStateException
-
getDescription
- Specified by:
getDescriptionin interfaceorg.springframework.core.io.Resource
-
isReadable
public boolean isReadable()- Specified by:
isReadablein interfaceorg.springframework.core.io.Resource
-
getURL
- Specified by:
getURLin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getURI
- Specified by:
getURIin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getFile
- Specified by:
getFilein interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
createRelative
- Specified by:
createRelativein interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
toString
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceorg.springframework.core.io.WritableResource
-
getOutputStream
- Specified by:
getOutputStreamin interfaceorg.springframework.core.io.WritableResource- Throws:
IOException
-
delete
public void delete()- Specified by:
deletein interfaceDeletableResource
-