package com.artfess.file.service.impl;


import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.artfess.base.attachment.AttachmentService;
import com.artfess.base.attachment.AttachmentServiceFactory;
import com.artfess.base.util.BeanUtils;
import com.artfess.file.model.DefaultFile;
import com.artfess.file.service.FilePreview;
import com.artfess.file.util.AppFileUtil;
import com.artfess.file.util.ZipReader;

/**
 * Created by kl on 2018/1/17.
 * Content :处理压缩包文件
 */
@SuppressWarnings(value ={"unchecked","rawtypes"})
@Service
public class CompressFilePreviewImpl implements FilePreview{

	@Value("${file.file.dir}")
	String fileDir;

	@Autowired
	ZipReader zipReader;
	@Resource
	AttachmentServiceFactory attachmentServiceFactory;

	@Override
	public String filePreviewHandle(DefaultFile fileMode,Map map) {
	    return "compress";
	}

}
