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

io.leopard.data.dfs.PictureList Maven / Gradle / Ivy

Go to download

分布式文件系统实现,目前只是做了基于GridFS的实现,可以在本机文件系统进行缓存。

There is a newer version: 0.9.12
Show newest version
package io.leopard.data.dfs;

import java.util.ArrayList;

import org.springframework.web.multipart.MultipartFile;

/**
 * 测试时使用.
 * 
 * @author 谭海潮
 *
 */
public class PictureList extends ArrayList {

	private static final long serialVersionUID = 1L;

	public PictureList(String... urls) {
		for (String url : urls) {
			this.add(url);
		}
	}

	public boolean add(String url) {
		UrlMultipartFile file = new UrlMultipartFile(url);
		return this.add(file);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy