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