All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.lightspeed7.mongofs.gridfs.GridFSInputFileAdapter Maven / Gradle / Ivy

Go to download

An extension to the MongoDB Java Driver library that goes beyond what the GridFS feature supports. Compressed file storage, zip files, temporary files

There is a newer version: 0.10.0
Show newest version
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