| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
DfsGridImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
boolean |
create(String filename,
byte[] data) |
boolean |
delete(String filename) |
void |
destroy() |
protected com.mongodb.gridfs.GridFS |
getGridFS() |
String |
getServer() |
byte[] |
read(String filename) |
void |
setServer(String server) |
public String getServer()
public void setServer(String server)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected com.mongodb.gridfs.GridFS getGridFS()
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic byte[] read(String filename) throws IOException
read in interface DfsIOExceptionCopyright © 2014–2016. All rights reserved.