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

me.lightspeed7.mongofs.MongoManifest 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;

import java.util.ArrayList;
import java.util.List;

public class MongoManifest {

    private MongoFile zip;

    private List files = new ArrayList();

    /**
     * Manifest file to hold all files for an expanded zip file
     * 
     * @param zip
     */
    public MongoManifest(final MongoFile zip) {
        this.zip = zip;
    }

    /**
     * Add a file to the manifest
     * 
     * @param file
     */
    public void addMongoFile(final MongoFile file) {
        this.files.add(file);
    }

    /**
     * Get all the files defined on this manifest
     * 
     * @return List
     */
    public List getFiles() {
        return files;
    }

    /**
     * Add a list of file to the Manifest
     * 
     * @param files
     */
    public void setFiles(final List files) {
        this.files = files;
    }

    /**
     * Return the original file that the manifest represents the contents of
     * 
     * @return MongoFile
     */
    public MongoFile getZip() {
        return zip;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy