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

me.lightspeed7.mongofs.MongoFileWriterAdapter Maven / Gradle / Ivy

package me.lightspeed7.mongofs;


/**
 * Adapter to handle the custom parts of data collection from each chunk
 * 
 * @author David Buschman
 * 
 */
public class MongoFileWriterAdapter extends ChunksStatisticsAdapter {

    private MongoFile file;

    public MongoFileWriterAdapter(final MongoFile file) {

        super((InputFile) file);
        this.file = file;
    }

    @Override
    public void close() {

        super.close();
        file.save();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy