me.lightspeed7.mongofs.gridfs.GridFSInputFileAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongoFS Show documentation
Show all versions of mongoFS Show documentation
An extension to the MongoDB Java Driver library that goes beyond what the GridFS feature supports.
Compressed file storage, zip files, temporary files
package me.lightspeed7.mongofs.gridfs;
import me.lightspeed7.mongofs.ChunksStatisticsAdapter;
/**
* Adapter to handle the custom pars of data collection from each chunk
*
* @author David Buschman
*
*/
public class GridFSInputFileAdapter extends ChunksStatisticsAdapter {
private GridFSInputFile file;
public GridFSInputFileAdapter(GridFSInputFile file) {
super(file);
this.file = file;
}
@Override
public void close() {
super.close();
file.superSave();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy